fineui是帆软报表和BI产品线所使用的前端框架。
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.

38 lines
1.1 KiB

7 years ago
# bi.table
### table作为一个列表集合存在,继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/8t2en619/)
{% common %}
```javascript
BI.createWidget({
element: "body",
type: "bi.table",
items: [[]],
columnSize: [100, "fill", 200],
rowSize: [10, 30, 50, 70, 90, 110, 130],
hgap: 20,
vgap: 10
});
```
{% endmethod %}
## 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ---------- | --------- | ------------ | ------------------ |
| scrolly | 是否出现滚动条 | bool | true |
| columnSize | 列项宽度 | array/number | [200, 200, 'fill'] |
| rowSize | 行高 | array/number | 30 |
| hgap | 内部元素间纵向距离 | number | 0 |
| vgap | 内部元素间横向距离 | number | 0 |
| items | 子项 | array | [] |
## 方法
| 方法名 | 说明 | 用法 |
| -------- | ------ | --------------- |
| addItem | 增加内容 | addItem(arr) |
| populate | 更换新的内容 | poplulate(item) |
7 years ago