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.

21 lines
531 B

8 years ago
Demo.CodeEditor = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-editor"
},
render: function () {
this.formula = BI.createWidget({
7 years ago
type: "bi.formula_editor",
width: 300,
height: 200,
value: "SUM(C5, 16, 26)"
8 years ago
});
BI.createWidget({
type: "bi.left",
element: this,
items: [this.formula],
hgap: 20,
vgap: 20
7 years ago
});
8 years ago
}
});
8 years ago
BI.shortcut("demo.formula_editor", Demo.CodeEditor);