Browse Source

update bi.excel_table

es6
iapyang 7 years ago
parent
commit
c2a95dd0fa
  1. 36
      uidoc/detailed/table/bi.excel_table.md

36
uidoc/detailed/table/bi.excel_table.md

@ -5,31 +5,27 @@
{% common %} {% common %}
```javascript ```javascript
var items = [];
for (var i = 0; i < 8; i++) {
var temp = [];
for (var j = 0; j < 6; j++) {
var obj = {
type: "bi.label",
cls: "layout-bg1",
text: "第" + (i+1) + "行第" + (j+1) + "列"
};
temp.push(obj);
}
items.push(temp);
}
BI.createWidget({ BI.createWidget({
type: "bi.excel_table", type: "bi.excel_table",
element: "#wrapper", element: "#wrapper",
width: 500, width: 500,
columnSize: [200,200,200,200,200], columnSize: [200,200,200,200,200],
items: [ items: items,
[{
type: "bi.label",
cls: "layout-bg1",
text: "第一行第一列"
}, {
type: "bi.label",
cls: "layout-bg2",
text: "第一行第二列"
}],
[{
type: "bi.label",
cls: "layout-bg3",
text: "第二行第一列"
}, {
type: "bi.label",
cls: "layout-bg4",
text: "第二行第二列"
}]
]
}); });
``` ```

Loading…
Cancel
Save