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.

55 lines
1.6 KiB

8 years ago
Demo.Main = BI.inherit(BI.Widget, {
props: {
8 years ago
baseCls: "demo-main bi-background"
8 years ago
},
_store: function () {
return BI.Stores.getStore("demo.store.main");
},
beforeInit: function (cb) {
this.store.init(cb);
},
8 years ago
render: function () {
var self = this;
8 years ago
return {
8 years ago
type: "bi.border",
items: {
north: {
height: 50,
el: {
8 years ago
type: "demo.north",
listeners: [{
eventName: Demo.North.EVENT_VALUE_CHANGE,
8 years ago
action: function (v) {
self.store.handleTreeSelectChange(v);
8 years ago
}
}]
8 years ago
}
},
west: {
width: 230,
el: {
8 years ago
type: "demo.west",
listeners: [{
eventName: Demo.West.EVENT_VALUE_CHANGE,
action: function (v) {
self.store.handleTreeSelectChange(v);
8 years ago
}
}]
8 years ago
}
},
center: {
el: {
type: "demo.center",
8 years ago
ref: function (_ref) {
self.center = _ref;
8 years ago
}
8 years ago
}
}
}
7 years ago
};
8 years ago
}
});
8 years ago
BI.shortcut("demo.main", Demo.Main);