js: list add reload api
This commit is contained in:
@@ -2507,6 +2507,9 @@ var List = /** @class */ (function (_super) {
|
||||
this.cachedViews.clear();
|
||||
this.itemCount = 0;
|
||||
};
|
||||
List.prototype.reload = function (context) {
|
||||
return this.nativeChannel(context, 'reload')();
|
||||
};
|
||||
List.prototype.getItem = function (itemIdx) {
|
||||
var view = this.renderItem(itemIdx);
|
||||
view.superview = this;
|
||||
|
@@ -1893,6 +1893,9 @@ class List extends Superview {
|
||||
this.cachedViews.clear();
|
||||
this.itemCount = 0;
|
||||
}
|
||||
reload(context) {
|
||||
return this.nativeChannel(context, 'reload')();
|
||||
}
|
||||
getItem(itemIdx) {
|
||||
let view = this.renderItem(itemIdx);
|
||||
view.superview = this;
|
||||
|
@@ -3423,6 +3423,9 @@ class List extends Superview {
|
||||
this.cachedViews.clear();
|
||||
this.itemCount = 0;
|
||||
}
|
||||
reload(context) {
|
||||
return this.nativeChannel(context, 'reload')();
|
||||
}
|
||||
getItem(itemIdx) {
|
||||
let view = this.renderItem(itemIdx);
|
||||
view.superview = this;
|
||||
|
Reference in New Issue
Block a user