fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
3.2 KiB

8 years ago
Demo.Func = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-func"
},
render: function () {
8 years ago
var ref;
8 years ago
return {
8 years ago
type: "bi.vertical",
8 years ago
items: [{
type: "bi.custom_tree",
8 years ago
ref: function (_ref) {
ref = _ref;
},
el: {
type: "bi.button_tree",
chooseType: 0,
layouts: [{
type: "bi.vertical"
}],
behaviors: {
redmark: function () {
return true;
}
8 years ago
},
}
8 years ago
}, {
type: "bi.button",
8 years ago
text: "populate",
handler: function () {
ref.populate([
{
"type": "bi.multilayer_icon_tree_leaf_item",
"id": 0,
"pId": 100,
"text": "归一化1",
"title": "归一化1",
"value": {
"modelType": 100,
"modelName": "归一化1"
},
"isParent": false,
"layer": 1
},
{
"type": "bi.multilayer_icon_tree_leaf_item",
"id": 1,
"pId": 100,
"text": "标准化1",
"title": "标准化1",
"value": {
"modelType": 100,
"modelName": "标准化1"
},
"isParent": false,
"layer": 1
8 years ago
},
{
"type": "bi.multilayer_icon_tree_leaf_item",
"id": 2,
"pId": 103,
"text": "主成分1",
"title": "主成分1",
"value": {
"modelType": 103,
"modelName": "主成分1"
},
"isParent": false,
"layer": 1
8 years ago
},
{
"type": "bi.multilayer_icon_tree_leaf_item",
"id": 3,
"pId": 102,
"text": "特征工程1",
"title": "特征工程1",
"value": {
"modelType": 102,
"modelName": "特征工程1"
},
"isParent": false,
"layer": 1
8 years ago
}
], "t");
8 years ago
}
8 years ago
}]
8 years ago
7 years ago
};
8 years ago
}
});
8 years ago
BI.shortcut("demo.button_group", Demo.Func);