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.
22 lines
593 B
22 lines
593 B
7 years ago
|
Demo.Func = BI.inherit(BI.Widget, {
|
||
|
props: {
|
||
|
baseCls: "demo-func"
|
||
|
},
|
||
|
render: function () {
|
||
|
return {
|
||
|
type: "bi.list_view",
|
||
|
el: {
|
||
|
type: "bi.left"
|
||
|
},
|
||
|
items: BI.map(Demo.CONSTANTS.ITEMS, function (i, item) {
|
||
|
return BI.extend({}, item, {
|
||
|
type: "bi.label",
|
||
|
width: 200,
|
||
|
height: 200,
|
||
|
text: (i + 1) + "." + item.text,
|
||
|
});
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
BI.shortcut("demo.list_view", Demo.Func);
|