InputRowArray#
- class ansys.solutions.dash_super_components.InputRowArray(items: list[dict[str, Any]], enable_multiple_rows: bool = False, aio_id: str | None = None, full_width: bool = False)#
Bases:
DivA Dash component to create an array of inputs.
InputRowArray is based on the Dash All-in-One (AIO) component pattern. It renders a set of input fields as a single row, and optionally allows users to add or remove additional rows dynamically.
Each field is defined by a dict with the following keys:
"type"(required):"TextInput","NumberInput", or"Select"."id"(required): unique string identifier for the field."properties"(required): dict of dash mantine component properties.
- Parameters:
- items
listofdict A list of dictionaries defining each input field in a row. Each dict must contain
"type","id", and"properties"keys. Supported types:"TextInput","NumberInput","Select".- enable_multiple_rows
bool,optional If
True, add and delete buttons are displayed so that users can create or remove extra rows at runtime. Default isFalse.- aio_id
str,optional The unique identifier for the component. A UUID is generated if not provided.
- full_width
bool,optional If
True, the input row container expands to 100% of the available parent width so fields can spread across the row. IfFalse, the container keeps its base inline-block width behavior. Default isFalse.
- items
IDs
- class ansys.solutions.dash_super_components.InputRowArray.InputRowArrayIds#
Bases:
AIOIdsProvides IDs for the subcomponents of
InputRowArray.- classmethod add_button(aio_id: str | Wildcard) dict[str, Any]#
Return the ID for the add button component.
- classmethod delete_button(aio_id: str | Wildcard) dict[str, Any]#
Return the ID for the delete button component.