|
|
@ -3565,26 +3565,21 @@ $.shortcut("bi.combo_group", BI.ComboGroup);BI.VirtualGroup = BI.inherit(BI.Widg |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_createBtns: function (items) { |
|
|
|
_packageBtns: function (items) { |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
return BI.createItems(items, { |
|
|
|
|
|
|
|
type: "bi.text_button" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_packageBtns: function (btns) { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
|
|
|
|
for (var i = o.layouts.length - 1; i > 0; i--) { |
|
|
|
for (var i = o.layouts.length - 1; i > 0; i--) { |
|
|
|
btns = BI.map(btns, function (k, it) { |
|
|
|
items = BI.map(items, function (k, it) { |
|
|
|
return BI.extend({}, o.layouts[i], { |
|
|
|
return BI.extend({}, o.layouts[i], { |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
BI.extend({}, o.layouts[i].el, it) |
|
|
|
BI.extend({}, o.layouts[i].el, { |
|
|
|
|
|
|
|
el: BI.stripEL(it) |
|
|
|
|
|
|
|
}) |
|
|
|
] |
|
|
|
] |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
return btns; |
|
|
|
return items; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_packageItems: function (items, packBtns) { |
|
|
|
_packageItems: function (items, packBtns) { |
|
|
@ -3606,7 +3601,7 @@ $.shortcut("bi.combo_group", BI.ComboGroup);BI.VirtualGroup = BI.inherit(BI.Widg |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
items = items || []; |
|
|
|
items = items || []; |
|
|
|
this.options.items = items; |
|
|
|
this.options.items = items; |
|
|
|
items = this._packageItems(items, this._packageBtns(this._createBtns(items))); |
|
|
|
items = this._packageItems(items, this._packageBtns(items)); |
|
|
|
if (!this.layouts) { |
|
|
|
if (!this.layouts) { |
|
|
|
this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items))); |
|
|
|
this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items))); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|