bricks/docs/cn/widgets/tabular.md
2024-05-15 08:30:48 +08:00

28 lines
615 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tabular
数据驱动的表格状数据展示控件,每行显示一条数据
## widgettype值
Tabular
## 父类
bricks.DynamicAccordion
## 构建参数
## 方法
### render
语法:
render(params)
#### params 参数
字典类型以kv形式提供获参数提供Tabular获取后台数据的条件
## 事件
### toolbar中定义的事件
工具条上的工具在点击时, Tabular会触发所点击tool的name事件
### 编辑事件
当Tabular设置可编辑时toolbar中会添加add update delete三个工具点击后会触发相应的add, update和delete事件
## 使用例子
```
```