Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
lino.core.tables¶
Defines the classes AbstractTable and
VirtualTable.
Classes
|
Probably deprecated. |
|
A mixin for tables that have a series of automatically generated columns. |
|
|
|
An |
- class lino.core.tables.VirtualTable(*args, **kw)¶
Bases:
AbstractTableAn
AbstractTablethat works on an volatile (non persistent) list of rows.By nature it cannot have database fields, only virtual fields.
Subclasses must define a
get_data_rows()method.
- class lino.core.tables.VentilatedColumns(*args, **kw)¶
Bases:
VirtualTableA mixin for tables that have a series of automatically generated columns. TODO: rename this to DynamicColumns.
- column_names_template = ''¶
The template to use for
column_names. It should contain a string{vcolumns}, which will be replaced by a space-separated list of the column names given byget_ventilated_columns().
- class lino.core.tables.ButtonsTable(*args, **kw)¶
Bases:
VirtualTableProbably deprecated. Might not work as expected in React (because of hide_top_toolbar).
An abstract
VirtualTablewith only one column and whose rows are action buttons.Subclasses must implement get_data_rows to yield action buttons.
Usage example lino_welfare.modlib.reception.models.FindDateByClientTable.