A select field of a modal whose options are fixed in the definition; its value is one of the option values.
Attributes#
| Attribute | Type | Description |
|---|---|---|
label | str | |
placeholder | str | None = None | |
options | tuple[OptionOf[str], ...] | |
optional | bool = False | |
kind | Literal['choice'] = field(default='choice', init=False) |
Functions#
__init__#
__init__(*, label, placeholder=None, options, optional=False) -> None| Parameter | Type | Description |
|---|---|---|
label | str | |
placeholder | str | None = None | |
options | tuple[OptionOf[str], ...] | |
optional | bool = False |