1.4.6 • Published 6 years ago
meepo-xscroll v1.4.6
xscroll for angular
import { XscrollModule } from 'meepo-xscroll';
@NgModule({
imports: [
XscrollModule.forRoot()
]
})
export class AppModule { }
<div class="flex">
<div class="row">
<xscroll [items]="items" (onLoad)="onLoad($event)" (onRefresh)="onRefresh($event)">
<ng-template xscrollRef let-item>
<div>{{item}}</div>
</ng-template>
</xscroll>
</div>
<div class="row">
<xscroll [items]="items" (onLoad)="onLoad($event)" (onRefresh)="onRefresh($event)">
<ng-template xscrollRef let-item>
<div>{{item}}</div>
</ng-template>
</xscroll>
</div>
</div>
export class AppComponent implements OnInit {
items: any[] = [];
constructor(
public cd: ChangeDetectorRef
) { }
ngOnInit() {
for (let i = 0; i < 10; i++) {
this.items.push(i);
}
}
onRefresh(e: any) {
this.items = [];
for (let i = 0; i < 10; i++) {
this.items.push(i);
}
e.next();
}
onLoad(e: any) {
let len = this.items.length;
for (let i = len; i < len + 10; i++) {
this.items.push(i);
}
e.next();
}
}
1.4.6
6 years ago
1.4.5
6 years ago
1.4.4
6 years ago
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.9
6 years ago
1.3.8
6 years ago
1.3.7
6 years ago
1.3.6
6 years ago
1.3.5
6 years ago
1.3.4
6 years ago
1.3.3
6 years ago
1.3.2
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.9
6 years ago
1.2.8
6 years ago
1.2.7
6 years ago
1.2.6
6 years ago
1.2.5
6 years ago
1.1.9
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.8
6 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago