gws.plugin.model_widget.select

Select widget.

Source code: gws.plugin.model_widget.select

Package Contents

class gws.plugin.model_widget.select.Config

Bases: gws.base.model.widget.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)

Bases: gws.Data

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)

Bases: gws.Data

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.

class gws.plugin.model_widget.select.Object

Bases: gws.base.model.widget.Object

props(user)
class gws.plugin.model_widget.select.Props

Bases: gws.base.model.widget.Props

items: list[ListItem]
withSearch: bool