|
|
@ -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", |
|
|
|