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.

46 lines
1.5 KiB

8 years ago
Demo.North = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-north"
},
render: function () {
8 years ago
var self = this;
8 years ago
return {
type: "bi.htape",
items: [{
width: 230,
el: {
8 years ago
type: "bi.text_button",
8 years ago
listeners: [{
eventName: BI.Button.EVENT_CHANGE,
action: function () {
4 years ago
self.fireEvent(Demo.North.EVENT_VALUE_CHANGE, "");
8 years ago
}
}],
8 years ago
cls: "logo",
height: 50,
8 years ago
text: "FineUI2.0"
8 years ago
}
}, {
el: {
8 years ago
type: "bi.right",
hgap: 10,
items: [{
type: "bi.text_button",
text: "星空蓝",
handler: function () {
5 years ago
BI.$("html").removeClass("bi-theme-default").addClass("bi-theme-dark");
8 years ago
}
}, {
type: "bi.text_button",
text: "典雅白",
handler: function () {
5 years ago
BI.$("html").removeClass("bi-theme-dark").addClass("bi-theme-default");
8 years ago
}
}]
8 years ago
}
}]
7 years ago
};
8 years ago
}
});
8 years ago
Demo.North.EVENT_VALUE_CHANGE = "EVENT_VALUE_CHANGE";
8 years ago
BI.shortcut("demo.north", Demo.North);