board ¤
The Textual application.
Classes:
Column ¤
Bases: Container
, ModalMixin
, NotifyMixin
A Devboard column.
Methods:
-
action_apply
–Apply an action to selected rows.
-
apply
–Apply action on given row.
-
compose
–Compose column widgets.
-
list_projects
–List projects for this column.
-
modal
–Push a modal.
-
notify_error
–Notify error.
-
notify_info
–Notify information.
-
notify_success
–Notify success.
-
notify_warning
–Notify warning.
-
on_mount
–Fill data table.
-
populate_rows
–Populate rows for this column.
-
update
–Update the column (recompute data).
Attributes:
DataTable ¤
Bases: SelectableRowsDataTable
A Devboard data table.
Methods:
-
action_reverse_select
–Reverse selection.
-
action_toggle_select_all
–Toggle-select all rows.
-
action_toggle_select_down
–Toggle selection down.
-
action_toggle_select_row
–Toggle-select current row.
-
action_toggle_select_up
–Toggle selection up.
-
add_rows
–Add rows.
-
clear
–Clear rows and optionally columns.
-
force_refresh
–Force refresh table.
Attributes:
-
ROW
–The class to instantiate rows.
-
current_row
(SelectableRow
) –Currently selected row.
-
selectable_rows
(Iterator[SelectableRow]
) –Rows, as selectable ones.
-
selected_rows
(Iterator[SelectableRow]
) –Selected rows.
add_rows ¤
Add rows.
Automatically insert a column with checkboxes in position 0.
clear ¤
clear(columns: bool = True) -> SelectableRowsDataTable
Clear rows and optionally columns.
When clearing columns, automatically re-add a column for checkboxes.
Row dataclass
¤
Row(table: SelectableRowsDataTable, key: RowKey)
Bases: SelectableRow
A Devboard row.
Methods:
-
remove
–Remove row from the table.
-
select
–Select this row.
-
toggle_select
–Toggle-select this row.
-
unselect
–Unselect this row.
Attributes:
-
app
(App
) –Textual application.
-
checkbox
(Checkbox
) –Row checkbox.
-
data
(list
) –Row data (without checkbox).
-
index
(int
) –Row index.
-
next
(SelectableRow
) –Next row (down).
-
previous
(SelectableRow
) –Previous row (up).
-
project
(Project
) –Devboard project.
-
selected
(bool
) –Whether this row is selected.