RowExpansionConfig()
Usage
RowExpansionConfig(
content=None,
/,
**kwargs,
)Description
Build a row-expansion configuration dictionary for detail panels shown beneath a record.
Parameters
content: Any = None-
Description: Dash component or payload rendered when a row is expanded. Example:
content=dmc.Text("Employee details"). allowMultiple: bool-
Description: Allows multiple rows to stay expanded at the same time. Example:
allowMultiple=True. trigger: str-
Description: Chooses how expansion is toggled. Expected inputs: frontend-supported trigger values such as
'click'when available. Example:trigger="click".
Returns
dict-
A dictionary with
Nonevalues removed.
Notes
This helper is especially useful when you want to keep expansion config in one place and reuse it across multiple table instances.
Examples
>>> RowExpansionConfig(content="More details", allowMultiple=True)
{'allowMultiple': True, 'content': 'More details'}