mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
30 lines
534 B
TypeScript
30 lines
534 B
TypeScript
import {Directive, ElementRef} from 'angular2/angular2';
|
|
|
|
|
|
@Directive({
|
|
selector: 'ion-item-group',
|
|
host: {
|
|
'class': 'item-group'
|
|
}
|
|
})
|
|
export class ItemGroup {
|
|
constructor(elementRef: ElementRef) {
|
|
this.ele = elementRef.nativeElement;
|
|
}
|
|
}
|
|
|
|
|
|
@Directive({
|
|
selector: 'ion-item-group-title',
|
|
host: {
|
|
'class': 'item-group-title',
|
|
'[class.sticky]': 'isSticky'
|
|
}
|
|
})
|
|
export class ItemGroupTitle {
|
|
constructor(elementRef: ElementRef) {
|
|
this.isSticky = true;
|
|
this.ele = elementRef.nativeElement;
|
|
}
|
|
}
|