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.

58 lines
1.8 KiB

8 years ago
Demo.Bubble = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-bubble"
},
render: function () {
8 years ago
var btns = [];
8 years ago
var items = [
{
el: {
8 years ago
ref: function (_ref) {
btns.push(_ref);
},
8 years ago
type: 'bi.button',
text: 'bubble测试',
8 years ago
height: 30,
handler: function () {
8 years ago
BI.Bubbles.show("singleBubble1", "bubble测试", this);
}
}
}, {
el: {
8 years ago
ref: function (_ref) {
btns.push(_ref);
},
8 years ago
type: 'bi.button',
text: 'bubble测试(居中显示)',
8 years ago
height: 30,
handler: function () {
8 years ago
BI.Bubbles.show("singleBubble2", "bubble测试", this, {
offsetStyle: "center"
});
}
}
}, {
el: {
8 years ago
ref: function (_ref) {
btns.push(_ref);
},
8 years ago
type: 'bi.button',
text: 'bubble测试(右边显示)',
8 years ago
height: 30,
handler: function () {
8 years ago
BI.Bubbles.show("singleBubble3", "bubble测试", this, {
offsetStyle: "right"
});
}
}
}
];
return {
type: "bi.left",
8 years ago
vgap: 200,
hgap: 20,
8 years ago
items: items
}
}
});
8 years ago
BI.shortcut("demo.bubble", Demo.Bubble);