gws.plugin.model_widget.select¶
Select widget.
Source code: gws.plugin.model_widget.select
Package Contents¶
- class gws.plugin.model_widget.select.Config¶
Select widget configuration.
- items: list[ListItemConfig]¶
List of items to select from.
- withSearch: bool = False¶
Whether to show a search input field.
- class gws.plugin.model_widget.select.ListItem(*args, **kwargs)¶
Item in the select widget.
- extraText: str | None¶
Additional text to display for the item.
- level: int | None¶
Optional level for hierarchical items, used for indentation.
- text: str¶
Text to display for the item.
- value: Any¶
Value of the item.
- class gws.plugin.model_widget.select.ListItemConfig(*args, **kwargs)¶
Configuration for a list item in the select widget.
- extraText: str | None¶
Additional text to display for the item.
- level: int | None¶
Optional level for hierarchical items, used for indentation.
- text: str | None¶
Text to display for the item.
- value: Any¶
Value of the item.