AutoLoad items with "scroll" (1st version)

This commit is contained in:
Dani Herrero 2017-10-03 12:10:30 +02:00
parent 5ef97c209d
commit bc8d319714
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,10 @@ export default class DropDown {
}
this.$timeout(() => {
this._activeOption = value;
// AutoLoad items with "scroll" (1st version):
if (value && value >= this.items.length - 3) {
this.loadItems();
}
});
}