dash_mp_components.DataBlock¶
- class dash_mp_components.DataBlock(children: str | int | float | Component | None | Sequence[str | int | float | Component | None] = None, id: str | dict | None = None, className: str | None = None, data: dict | None = None, columns: Sequence | None = None, expanded: bool | None = None, footer: str | int | float | Component | None | Sequence[str | int | float | Component | None] = None, iconClassName: str | None = None, iconTooltip: str | None = None, disableRichColumnHeaders: bool | None = None, **kwargs)[source]¶
Bases:
ComponentA DataBlock component. Display a single record of data in a horizontal block element with an optional expanded view to show additional data columns.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Content to display in the bottom section of the card. AlternativeWill take precedent.
- id (string; optional):
The ID used to identify this component in Dash callbacks.
- className (string; optional):
Class name(s) to append to the component’s default class (mpc-data-block).
- columns (list; optional):
Optional configuration for the columns in the data object. Follows the same format as the columns prop in the SearchUI component.
- data (dict; optional):
Object (i.e. dictionary) of data to be displayed in the block.
disableRichColumnHeaders (boolean; optional)
- expanded (boolean; optional):
Control the initial expanded state of the block. @default False.
- footer (a list of or a singular dash component, string or number; optional):
Content to display in the bottom section of the card. If you want to put a component in the footer, add it to the children prop instead.
- iconClassName (string; optional):
Class name(s) to use for the icon in the top right. If no class is supplied, there will not be an icon.
- iconTooltip (string; optional):
Optional tooltip to show when hovering over the icon.
- __init__(children: str | int | float | Component | None | Sequence[str | int | float | Component | None] = None, id: str | dict | None = None, className: str | None = None, data: dict | None = None, columns: Sequence | None = None, expanded: bool | None = None, footer: str | int | float | Component | None | Sequence[str | int | float | Component | None] = None, iconClassName: str | None = None, iconTooltip: str | None = None, disableRichColumnHeaders: bool | None = None, **kwargs)¶
Methods
__init__([children, id, className, data, ...])to_plotly_json()Attributes
REQUIREDUNDEFINEDavailable_wildcard_properties