forked from fanruan/fineui
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.
24 lines
737 B
24 lines
737 B
8 years ago
|
Demo.Func = BI.inherit(BI.Widget, {
|
||
|
props: {
|
||
|
baseCls: "demo-func"
|
||
|
},
|
||
|
render: function () {
|
||
|
return {
|
||
|
type: "bi.button_group",
|
||
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_NONE,
|
||
|
layouts: [{
|
||
|
type: "bi.vertical"
|
||
|
}, {
|
||
|
type: "bi.center_adapt",
|
||
|
}],
|
||
|
items: [{
|
||
|
type: "bi.label",
|
||
|
text: "button_group是一类具有相同属性或相似属性的抽象, 本案例实现的是布局的嵌套(vertical布局下内嵌center_adapt布局)"
|
||
|
}, {
|
||
|
type: "bi.button",
|
||
|
text: "1"
|
||
|
}]
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
$.shortcut("demo.button_group", Demo.Func);
|