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.

40 lines
1.1 KiB

7 years ago
Demo.Func = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-func"
},
render: function () {
return {
type: "bi.absolute",
items: [{
el: {
type: "bi.color_chooser",
3 years ago
recommendColorsGetter: function () {
return ["#ffffff", "#9d775f", "#dd4b4b", "#ef8b07", "#fcc800"]
},
width: 24,
height: 24
7 years ago
},
left: 100,
top: 250
6 years ago
}, {
el: {
type: "bi.simple_color_chooser",
width: 30,
height: 24
6 years ago
},
left: 400,
top: 250
}, {
el: {
type: "bi.color_chooser",
width: 230,
height: 24
6 years ago
},
left: 100,
top: 350
7 years ago
}]
7 years ago
};
7 years ago
}
});
7 years ago
BI.shortcut("demo.color_chooser", Demo.Func);