Table¶
Describe a table. Example:
class FooTable(Table): a = Column() b = Column() class Meta: sortable = False attrs__style = 'background: green'
Refinable members¶
- actions
- actions_template
- attrs
- dict of strings to string/callable of HTML attributes to apply to the table
- bulk
- bulk_exclude
- exclude filters to apply to the QuerySet before performing the bulk operation
- bulk_filter
- filters to apply to the QuerySet before performing the bulk operation
- column
- default_sort_order
- endpoint
- endpoint_dispatch_prefix
- extra
- filter
- form_class
- header
- links
- member_class
- model
- name
- page_size
- paginator
- preprocess_data
- preprocess_row
- query_class
- row
- sortable
- set this to false to turn off sorting for all columns
- superheader
- template
Defaults¶
- actions_template
- tri_form/actions.html
- attrs__class__listview
- True
- endpoint__bulk
- lambda table, key, value: table.bulk_form.endpoint_dispatch(key=key, value=value) if table.bulk is not None else None
- endpoint__query
- lambda table, key, value: table.query.endpoint_dispatch(key=key, value=value) if table.query is not None else None
- filter__template
- tri_query/form.html
- header__template
- tri_table/table_header_rows.html
- page_size
- 40
- paginator__template
- tri_table/paginator.html
- row__template
- None
- sortable
- True
- superheader__attrs__class__superheader
- True
- superheader__template
- tri_table/header.html
- template
- tri_table/list.html