Table functions
API reference for all built-in CapturedCallable
table functions to be used in the
AgGrid
and Table
models. The how-to guide on tables contains more information.
vizro.tables
dash_ag_grid
Implementation of dash_ag_grid.AgGrid
with sensible defaults to be used in AgGrid
.
Parameters:
-
data_frame
(DataFrame
) –DataFrame containing the data to be displayed.
-
kwargs
(Any
, default:{}
) –Additional keyword arguments to be passed to the
dash_ag_grid.AgGrid
component.
Returns:
-
AgGrid
–A
dash_ag_grid.AgGrid
component with sensible defaults.
Examples:
Wrap inside vm.AgGrid
to use as a component inside vm.Page
or vm.Container
.
>>> import vizro.models as vm
>>> from vizro.tables import dash_ag_grid
>>> vm.Page(title="Page", components=[vm.AgGrid(figure=dash_ag_grid(...))])
Source code in src/vizro/tables/_dash_ag_grid.py
dash_data_table
Standard dash.dash_table.DataTable
with sensible defaults to be used in Table
.
Parameters:
-
data_frame
(DataFrame
) –DataFrame containing the data to be displayed.
-
kwargs
(Any
, default:{}
) –Additional keyword arguments to be passed to the
dash_table.DataTable
component.
Returns:
-
DataTable
–A
dash.dash_table.DataTable
component with sensible defaults.
Examples:
Wrap inside vm.Table
to use as a component inside vm.Page
or vm.Container
.
>>> import vizro.models as vm
>>> from vizro.table import dash_data_table
>>> vm.Page(title="Page", components=[vm.Table(figure=dash_data_table(...))])