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.

29 lines
764 B

/**
* Created by Dailer on 2017/7/14.
*/
Demo.SignEditor = BI.inherit(BI.Widget, {
props: {
baseCls: ""
},
render: function () {
7 years ago
var editor = BI.createWidget({
type: "bi.sign_editor",
cls: "bi-border bi-focus-shadow",
7 years ago
validationChecker: function (v) {
return v != "abc";
7 years ago
},
watermark: "可以设置标记的输入框",
text: "这是一个标记,点击它即可进行输入"
7 years ago
});
7 years ago
editor.setValue(2);
BI.createWidget({
type: "bi.vertical",
element: this,
hgap: 30,
vgap: 20,
items: [editor]
7 years ago
});
}
7 years ago
});
BI.shortcut("demo.sign_editor", Demo.SignEditor);