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.

47 lines
1.2 KiB

/**
* Created by Dailer on 2017/7/11.
*/
Demo.ClearEditor = BI.inherit(BI.Widget, {
props: {
baseCls: ""
},
render: function () {
7 years ago
var editor = BI.createWidget({
type: "bi.shelter_editor",
cls: "bi-border",
validationChecker: function (v) {
return v != "a";
},
watermark: "可以设置标记的输入框",
7 years ago
value: "这是一个遮罩",
keyword: "z"
7 years ago
});
7 years ago
BI.createWidget({
type: "bi.vertical",
element: this,
hgap: 30,
vgap: 20,
bgap: 50,
items: [editor]
7 years ago
});
7 years ago
BI.createWidget({
type: "bi.absolute",
element: this,
items: [{
7 years ago
el: {
type: "bi.button",
text: "focus",
height: 25,
handler: function () {
editor.focus();
}
},
7 years ago
right: 10,
left: 10,
bottom: 10
}]
7 years ago
});
}
7 years ago
});
BI.shortcut("demo.shelter_editor", Demo.ClearEditor);