Browse Source

update

master
windy 4 years ago
parent
commit
cfd96d4dbc
  1. 10
      demo/js/component/demo.valuechoosercombo.js

10
demo/js/component/demo.valuechoosercombo.js

@ -4,16 +4,10 @@ Demo.ValueChooserCombo = BI.inherit(BI.Widget, {
}, },
render: function () { render: function () {
var widget = BI.createWidget({ var widget = BI.createWidget({
type: "bi.value_chooser_no_bar_combo", type: "bi.value_chooser_combo",
itemsCreator: function (op, callback) { itemsCreator: function (op, callback) {
callback(BI.deepClone(Demo.CONSTANTS.ITEMS)); callback(BI.deepClone(Demo.CONSTANTS.ITEMS));
}, }
listeners: [{
eventName: "EVENT_CONFIRM",
action: function () {
BI.Msg.toast(widget.getValue());
}
}]
}); });
return { return {
type: "bi.vertical", type: "bi.vertical",

Loading…
Cancel
Save