/**
* Created by User on 2017/3/22.
*/
Demo.GridLayout = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-grid"
},
render: function () {
return {
type: "bi.grid",
columns: 5,
rows: 3,
items: [{
column: 0,
row: 0,
el: {
type: "bi.label",
text: "column-0, row-0",
cls: "layout-bg1"
}
}, {
column: 1,
text: "column-1, row-0",
cls: "layout-bg2"
column: 2,
text: "column-2, row-0",
cls: "layout-bg6"
column: 3,
text: "column-3, row-0",
cls: "layout-bg3"
column: 4,
text: "column-4, row-0",
cls: "layout-bg4"
row: 1,
text: "column-0, row-1",
cls: "layout-bg5"
text: "column-1, row-1",
text: "column-2, row-1",
cls: "layout-bg7"
text: "column-3, row-1",
text: "column-4, row-1",
row: 2,
text: "column-0, row-2",
text: "column-1, row-2",
text: "column-2, row-2",
text: "column-3, row-2",
text: "column-4, row-2",
}]
};
});
BI.shortcut("demo.grid", Demo.GridLayout);