inspect_viz.table
table
Tabular display of data.
def table(
data: Data,
*,
columns: Sequence[str | Column] | None = None,
filter_by: Selection | None = None,
target: Selection | None = None,
select: Literal[
"hover",
"single_row",
"multiple_row",
"single_checkbox",
"multiple_checkbox",
"none",
]
| None = None,
width: float | None = None,
max_width: float | None = None,
height: float | Literal["auto"] | None = None,
header_height: float | None = None,
row_height: float | None = None,
sorting: bool | None = None,
filtering: bool | Literal["header", "row"] | None = None,
pagination: bool | Pagination | None = None,
style: TableStyle | None = None,
) -> ComponentdataData-
The data source for the table.
columnsSequence[str | Column] | None-
A list of column names to include in the table grid. If unspecified, all table columns are included.
filter_bySelection | None-
Selection to filter by (defaults to data source selection).
targetSelection | None-
The output selection. A selection clause of the form column IN (rows) will be added to the selection for each currently selected table row.
selectLiteral['hover', 'single_row', 'multiple_row', 'single_checkbox', 'multiple_checkbox', 'none'] | None-
The type of selection to use for the table. Valid values are “hover”, “single_checkbox”, “multiple_checkbox”, “single_row”, “multiple_row”, and “none”. Defaults to “single_row”.
widthfloat | None-
The total width of the table widget, in pixels.
max_widthfloat | None-
The maximum width of the table widget, in pixels.
heightfloat | Literal['auto'] | None-
Either the height of the table widget in pixels, or “auto”. If “auto”, the height of the table will fit the content within the table up to the 500px. Defaults to “auto”.
header_heightfloat | None-
The height of the table header, in pixels.
row_heightfloat | None-
The height of each table row, in pixels.
sortingbool | None-
Set whether sorting columns is enabled.
filteringbool | Literal['header', 'row'] | None-
Enable filtering. If set to ‘header’ a filter button is shown in the table header. If set to ‘row’, a filter is shown in a row beneath the header.
paginationbool | Pagination | None-
Enable pagination. If set to True, default pagination settings are used. If set to a Pagination object, custom pagination settings are used.
styleTableStyle | None-
The style configuration for the table display.