mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
form: TagOption: add icon prop
This commit is contained in:
parent
03fc739b3c
commit
5e81579c31
1 changed files with 3 additions and 0 deletions
|
@ -1418,12 +1418,15 @@ class TagsOption(BaseChoicesOption):
|
|||
- `default`: `""`, obviously the default has to be empty or an available `choices` item.
|
||||
- `pattern` (optional): `Pattern`, a regex to match all the values against
|
||||
- `choices` (optional): a (coma separated) list of values
|
||||
- `icon` (optional): any icon name from [Fork Awesome](https://forkaweso.me/Fork-Awesome/icons/)
|
||||
- Currently only displayed in the web-admin
|
||||
"""
|
||||
|
||||
type: Literal[OptionType.tags] = OptionType.tags
|
||||
filter: Literal[None] = None
|
||||
choices: Union[list[str], None] = None
|
||||
pattern: Union[Pattern, None] = None
|
||||
icon: Union[str, None] = None
|
||||
default: Union[str, list[str], None]
|
||||
_annotation = str
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue