|
|
@ -39122,6 +39122,7 @@ BI.Loader = BI.inherit(BI.Widget, { |
|
|
|
this.button_group = BI.createWidget(o.el, { |
|
|
|
this.button_group = BI.createWidget(o.el, { |
|
|
|
type: "bi.button_group", |
|
|
|
type: "bi.button_group", |
|
|
|
chooseType: 0, |
|
|
|
chooseType: 0, |
|
|
|
|
|
|
|
items: o.items, |
|
|
|
behaviors: {}, |
|
|
|
behaviors: {}, |
|
|
|
layouts: [{ |
|
|
|
layouts: [{ |
|
|
|
type: "bi.vertical" |
|
|
|
type: "bi.vertical" |
|
|
@ -39154,10 +39155,10 @@ BI.Loader = BI.inherit(BI.Widget, { |
|
|
|
})))); |
|
|
|
})))); |
|
|
|
|
|
|
|
|
|
|
|
o.isDefaultInit && BI.isEmpty(o.items) && BI.nextTick(BI.bind(function () { |
|
|
|
o.isDefaultInit && BI.isEmpty(o.items) && BI.nextTick(BI.bind(function () { |
|
|
|
o.isDefaultInit && BI.isEmpty(o.items) && this.populate(); |
|
|
|
o.isDefaultInit && BI.isEmpty(o.items) && this._populate(); |
|
|
|
}, this)); |
|
|
|
}, this)); |
|
|
|
if (BI.isNotEmptyArray(o.items)) { |
|
|
|
if (BI.isNotEmptyArray(o.items)) { |
|
|
|
this.populate(o.items); |
|
|
|
this._populate(o.items); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -39209,14 +39210,16 @@ BI.Loader = BI.inherit(BI.Widget, { |
|
|
|
this.button_group.addItems.apply(this.button_group, arguments); |
|
|
|
this.button_group.addItems.apply(this.button_group, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
|
|
|
|
|
|
|
|
_populate: function (items) { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
if (arguments.length === 0 && (BI.isFunction(o.itemsCreator))) { |
|
|
|
if (arguments.length === 0 && (BI.isFunction(o.itemsCreator))) { |
|
|
|
o.itemsCreator.apply(this, [{times: 1}, function () { |
|
|
|
o.itemsCreator.apply(this, [{times: 1}, function () { |
|
|
|
if (arguments.length === 0) { |
|
|
|
if (arguments.length === 0) { |
|
|
|
throw new Error("arguments can not be null!!!"); |
|
|
|
throw new Error("arguments can not be null!!!"); |
|
|
|
} |
|
|
|
} |
|
|
|
self.populate.apply(self, arguments); |
|
|
|
self._populate.apply(self, arguments); |
|
|
|
|
|
|
|
self.button_group.populate.apply(self.button_group, arguments); |
|
|
|
o.onLoaded(); |
|
|
|
o.onLoaded(); |
|
|
|
}]); |
|
|
|
}]); |
|
|
|
return; |
|
|
|
return; |
|
|
@ -39239,6 +39242,10 @@ BI.Loader = BI.inherit(BI.Widget, { |
|
|
|
this.prev.invisible(); |
|
|
|
this.prev.invisible(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
|
|
|
|
this._populate(items); |
|
|
|
this.button_group.populate.apply(this.button_group, arguments); |
|
|
|
this.button_group.populate.apply(this.button_group, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|