Bases: horizon.tables.views.MultiTableView
A class-based generic view to handle basic DataTable processing.
Three steps are required to use this view: set the table_class attribute with the desired DataTable class; define a get_data method which returns a set of data for the table; and specify a template for the template_name attribute.
Optionally, you can override the has_more_data method to trigger pagination handling for APIs that support it.
Update the table server filter information in the session and determine if the filter has been changed.
Update the table server side filter action based on the current filter. The filter info may be stored in the session and this will restore it.
Bases: horizon.tables.views.DataTableView
A class-based generic view to handle DataTable with mixed data types.
Basic usage is the same as DataTableView.
Three steps are required to use this view: #. Set the table_class attribute with desired DataTable class. In the class the data_types list should have at least two elements.
#. Define a get_{{ data_type }}_data method for each data type which returns a set of data for the table.
Bases: object
A generic mixin which provides methods for handling DataTables.
Bases: horizon.tables.views.MultiTableMixin, horizon.views.HorizonTemplateView
A class-based generic view to handle the display and processing of multiple DataTable classes in a single view.
Three steps are required to use this view: set the table_classes attribute with a tuple of the desired DataTable classes; define a get_{{ table_name }}_data method for each table class which returns a set of data for that table; and specify a template for the template_name attribute.