Table
class UI.Table
columns
a list of columns (dict)
column properties:
type: "tag", "text" or "button"
label: any string
buttons: a list of buttons (dict)
buttons properties:
label: any string
color: default | danger
onClick: func
This value is required.
rows
a list of rows (dict)
row structure (dict):
id: Must be unique. Duplicate IDs can cause unexpected behavior and may result in incorrect UI rendering. Ensure each ID is distinct to avoid issues.
cells: a list of cells that match the structure of columns
cell structure (dict):
tag: text, color
text: text, subtext, imageUrl
button: {}
Default: []
search
True | False
Default: True
items_per_page
any int
Default: 50
selectable
True | False
Default: False
visible
See Visible.
Default: True
Events
onSelectionChange
selected_rows (list of row ids)
Triggered when the selection changes.
Last updated
Was this helpful?