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.
48 lines
1.4 KiB
48 lines
1.4 KiB
Demo.Bubble = BI.inherit(BI.Widget, { |
|
props: { |
|
baseCls: "demo-bubble" |
|
}, |
|
render: function () { |
|
var items = [ |
|
{ |
|
el: { |
|
type: 'bi.button', |
|
text: 'bubble测试', |
|
height : 30, |
|
handler: function(){ |
|
BI.Bubbles.show("singleBubble1", "bubble测试", this); |
|
} |
|
} |
|
}, { |
|
el: { |
|
type: 'bi.button', |
|
text: 'bubble测试(居中显示)', |
|
height : 30, |
|
handler: function(){ |
|
BI.Bubbles.show("singleBubble2", "bubble测试", this, { |
|
offsetStyle: "center" |
|
}); |
|
} |
|
} |
|
}, { |
|
el: { |
|
type: 'bi.button', |
|
text: 'bubble测试(右边显示)', |
|
height : 30, |
|
handler: function(){ |
|
BI.Bubbles.show("singleBubble3", "bubble测试", this, { |
|
offsetStyle: "right" |
|
}); |
|
} |
|
} |
|
} |
|
]; |
|
return { |
|
type: "bi.left", |
|
vgap : 200, |
|
hgap : 20, |
|
items: items |
|
} |
|
} |
|
}); |
|
$.shortcut("demo.bubble", Demo.Bubble); |