gws.plugin.model_widget.select
¶
Select widget.
Source code: gws.plugin.model_widget.select
Package Contents¶
- class gws.plugin.model_widget.select.ListItem(*args, **kwargs)¶
Bases:
gws.Data
Basic data object.
This object can be instantiated by passing one or or
dict
arguments and/or keyword args. All dicts keys and keywords become attributes of the object.Accessing an undefined attribute returns
None
and no error is raised, unless the attribute name starts with an underscore.- value: Any¶
- text: str¶
- extraText: str | None¶
- level: int | None¶
- class gws.plugin.model_widget.select.ListItemConfig(*args, **kwargs)¶
Bases:
gws.Data
Basic data object.
This object can be instantiated by passing one or or
dict
arguments and/or keyword args. All dicts keys and keywords become attributes of the object.Accessing an undefined attribute returns
None
and no error is raised, unless the attribute name starts with an underscore.- value: Any¶
- text: str | None¶
- extraText: str | None¶
- level: int | None¶
- class gws.plugin.model_widget.select.Config(*args, **kwargs)¶
Bases:
gws.base.model.widget.Config
Object configuration.
- items: list[ListItemConfig]¶
- withSearch: bool = False¶
- class gws.plugin.model_widget.select.Props(*args, **kwargs)¶
Bases:
gws.base.model.widget.Props
Object properties.
- withSearch: bool¶
- class gws.plugin.model_widget.select.Object¶
Bases:
gws.base.model.widget.Object
Model widget.
- props(user)¶
Generate a
Props
struct for this object.- Parameters:
user – The user for which the props should be generated.