|
|
|
@ -11,7 +11,8 @@ Demo.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
var items = BI.deepClone(Demo.CONSTANTS.TREE); |
|
|
|
|
return { |
|
|
|
|
type: "bi.horizontal_auto", |
|
|
|
|
items: [{ |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: "bi.multilayer_single_tree_combo", |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.tree = _ref; |
|
|
|
@ -25,15 +26,16 @@ Demo.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
handler: function () { |
|
|
|
|
BI.Msg.toast(self.tree.getValue()[0]); |
|
|
|
|
}, |
|
|
|
|
width: 300 |
|
|
|
|
width: 300, |
|
|
|
|
}, { |
|
|
|
|
type: "bi.button", |
|
|
|
|
text: "setVlaue (第二级文件1)", |
|
|
|
|
text: "setVlaue (11)", |
|
|
|
|
handler: function () { |
|
|
|
|
self.tree.setValue(["第二级文件1"]); |
|
|
|
|
self.tree.setValue(["11"]); |
|
|
|
|
}, |
|
|
|
|
width: 300 |
|
|
|
|
}], |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
vgap: 20 |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|