mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
docs(list): update list docs
This commit is contained in:
@ -25,15 +25,38 @@ export class List extends Ion {
|
|||||||
private _enableSliding: boolean = false;
|
private _enableSliding: boolean = false;
|
||||||
private _virtualScrollingManager: ListVirtualScroll;
|
private _virtualScrollingManager: ListVirtualScroll;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
ele: HTMLElement;
|
ele: HTMLElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
itemTemplate: any;
|
itemTemplate: any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
slidingGesture: ItemSlidingGesture;
|
slidingGesture: ItemSlidingGesture;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
@Input() items;
|
@Input() items;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
@Input() virtual;
|
@Input() virtual;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
@Input() content;
|
@Input() content;
|
||||||
|
|
||||||
constructor(elementRef: ElementRef, private zone: NgZone) {
|
constructor(elementRef: ElementRef, private _zone: NgZone) {
|
||||||
super(elementRef);
|
super(elementRef);
|
||||||
this.ele = elementRef.nativeElement;
|
this.ele = elementRef.nativeElement;
|
||||||
}
|
}
|
||||||
@ -98,7 +121,7 @@ export class List extends Ion {
|
|||||||
|
|
||||||
if (shouldEnable) {
|
if (shouldEnable) {
|
||||||
console.debug('enableSlidingItems');
|
console.debug('enableSlidingItems');
|
||||||
this.zone.runOutsideAngular(() => {
|
this._zone.runOutsideAngular(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.slidingGesture = new ItemSlidingGesture(this, this.ele);
|
this.slidingGesture = new ItemSlidingGesture(this, this.ele);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user