dash_mp_components.Formula¶
- class dash_mp_components.Formula(children: str | int | float | Component | None | Sequence[str | int | float | Component | None] = None, id: str | dict | None = None, className: str | None = None, **kwargs)[source]¶
Bases:
ComponentA Formula component. Render formula strings with proper subscripts. Note that this component expects the string to be a valid formula.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Use the children prop to set the content of the formula. Must be a simple string.
- 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-formula).
- setProps (optional):
Dash-assigned callback that should be called whenever any of the properties change.
- __init__(children: str | int | float | Component | None | Sequence[str | int | float | Component | None] = None, id: str | dict | None = None, className: str | None = None, **kwargs)¶
Methods
__init__([children, id, className])to_plotly_json()Attributes
REQUIREDUNDEFINEDavailable_wildcard_properties