@@ -70,6 +70,20 @@ let UNIQUE_VIEW_TYPE = 0;
70
70
71
71
@CSSType ( 'Pager' )
72
72
export abstract class PagerBase extends ContainerView implements AddChildFromBuilder {
73
+ static mRegisteredTransformers = { } ;
74
+ // This one works along with existing NS property change event system
75
+ public static selectedIndexChangeEvent = 'selectedIndexChange' ;
76
+ public static scrollEvent = 'scroll' ;
77
+ public static swipeEvent = 'swipe' ;
78
+ public static swipeStartEvent = 'swipeStart' ;
79
+ public static swipeOverEvent = 'swipeOver' ;
80
+ public static swipeEndEvent = 'swipeEnd' ;
81
+ public static loadMoreItemsEvent = 'loadMoreItems' ;
82
+ public static itemLoadingEvent = 'itemLoading' ;
83
+ public static itemDisposingEvent = 'itemDisposing' ;
84
+
85
+ public static knownFunctions = [ 'itemTemplateSelector' , 'itemIdGenerator' ] ; // See component-builder.ts isKnownFunction
86
+
73
87
public items : any [ ] | ItemsSource ;
74
88
public selectedIndex : number ;
75
89
public itemTemplate : string | Template ;
@@ -83,31 +97,21 @@ export abstract class PagerBase extends ContainerView implements AddChildFromBui
83
97
public autoPlayDelay : number ;
84
98
public autoPlay : boolean ;
85
99
public preserveIndexOnItemsChange : boolean = false ;
86
- // This one works along with existing NS property change event system
87
- public static selectedIndexChangeEvent = 'selectedIndexChange' ;
88
- public static scrollEvent = 'scroll' ;
89
- public static swipeEvent = 'swipe' ;
90
- public static swipeStartEvent = 'swipeStart' ;
91
- public static swipeOverEvent = 'swipeOver' ;
92
- public static swipeEndEvent = 'swipeEnd' ;
93
- public static loadMoreItemsEvent = 'loadMoreItems' ;
94
- public static itemLoadingEvent = 'itemLoading' ;
95
- public static itemDisposingEvent = 'itemDisposing' ;
96
100
public orientation : Orientation ;
97
- public _effectiveItemHeight : number ;
98
- public _effectiveItemWidth : number ;
99
101
public transformers : string ;
100
102
public loadMoreCount : number = 1 ;
101
- public _childrenViews : { view : PagerItem ; type : number } [ ] ;
102
- abstract readonly _childrenCount : number ;
103
103
public disableSwipe : boolean = false ;
104
- public static knownFunctions = [ 'itemTemplateSelector' , 'itemIdGenerator' ] ; // See component-builder.ts isKnownFunction
104
+
105
+ abstract readonly _childrenCount : number ;
106
+
107
+ protected _effectiveItemHeight : number ;
108
+ protected _effectiveItemWidth : number ;
109
+ public _childrenViews : { view : PagerItem ; type : number } [ ] ;
105
110
106
111
protected mObservableArrayInstance : ObservableArray < any > ;
107
112
108
113
abstract refresh ( ) : void ;
109
114
110
- static mRegisteredTransformers = { } ;
111
115
public static registerTransformer ( key : string , transformer ) {
112
116
PagerBase . mRegisteredTransformers [ key ] = transformer ;
113
117
}
0 commit comments