| put_widget* | Output your own widget |
| Other Interactions | toast | Show a notification 0 码力 |
159 页 |
7.47 MB
| 2 年前 3
put_button('close_popup'),
onclick=close_popup
])
In addition, you can use put_widget() to make your own output widgets that can accept put_xxx() calls.
For a full list of functions Output table |
| put_datatable | Output and update data table |
| datatable_update | datatable_insert |
| datatable_remove | |
| scroll bar is displayed when the content exceeds the limit |
| put_widget* | Output your own widget |
| Other Interactions | toast | Show a notification 0 码力 |
118 页 |
1.40 MB
| 2 年前 3 DataTable("Example Table", columns=table_columns,
data=TableResult(table_data))])
]
Alpha | Description of Operation | 100 | 3 | 2019-12-10
使用 DataTable 类来构造一个用来展示数据的表: 类来构造一个用来展示数据的表:
class adminui.DataTable(title="", columns=[], data=[], row_actions=[], table_actions=[], filter_form=None, on_data=None, size='default', scroll_x=None, scroll_y=None, id=None)
将数据表插入页面 only one page of data.
• size – size of the table (default | middle | small)
### 8.1 为表准备数据
DataTable 需要提供 columns(列的定义)和 data(表格数据)。columns 字段中所需的数据如下所示:
table_columns = [
{'title': 'Rule 0 码力 |
67 页 |
653.37 KB
| 2 年前 3
put_button('close_popup'),
onclick=close_popup
])
In addition, you can use put_widget() to make your own output widgets that can accept put_xxx() calls.
For a full list of functions Output table |
| put_datatable | Output and update data table |
| datatable_update | datatable_insert |
| datatable_remove | |
| scroll bar is displayed when the content exceeds the limit |
| put_widget* | Output your own widget |
| Other Interactions | toast | Show a notification 0 码力 |
118 页 |
1.40 MB
| 2 年前 3
put_button('close_popup'),
onclick=close_popup
])
In addition, you can use put_widget() to make your own output widgets that can accept put_xxx() calls.
For a full list of functions Output table |
| put_datatable | Output and update data table |
| datatable_update | datatable_insert |
| datatable_remove | |
| scroll bar is displayed when the content exceeds the limit |
| put_widget* | Output your own widget |
| Other Interactions | toast | Show a notification 0 码力 |
118 页 |
1.40 MB
| 2 年前 3 'D']]),
])
(下页继续)
put_button('close_backup'), onclick=close_backup
])
(续上页)
另外,你可以使用`put_widget()`来创建可以接受`put_xxx()`的自定义输出控件。
接受 put_xxx() 调用作为参数的完整输出函数清单请见输出函数列表
## 上下文管理器
一些接受 put_xxx() 调 $ | 输出表格 |
| put_datatable | Output and update data table |
| datatable_update | Datatable_insert |
| datatable_remove | |