From 500f3f63e502182629b6f1eceffa147811585ea0 Mon Sep 17 00:00:00 2001 From: Miguel Guthridge Date: Fri, 3 May 2024 13:14:35 +1000 Subject: [PATCH] Add more tag properties for textarea, option and select --- meta/tags.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/meta/tags.yml b/meta/tags.yml index 99aa34d..47f4bd4 100644 --- a/meta/tags.yml +++ b/meta/tags.yml @@ -147,3 +147,41 @@ textarea: required: doc: Whether the input is required to submit the form it is contained within. type: "Optional[bool]" + name: The name to use for this value when submitting the form. + rows: + doc: The number of rows (lines) to use in the text area. Value should be an integer, but given as type `str`. + type: "Optional[str]" + cols: + doc: The number of columns (length of each line) to use in the text area. Value should be an integer, but given as type `str`. + type: "Optional[str]" + placeholder: Placeholder text to use when the field is empty. + disabled: + doc: "Whether this option is disabled, meaning it cannot be selected, and will not be submitted with the form." + type: "Optional[Literal['disabled']]" + maxlength: The maximum number of characters permitted in the textarea + wrap: + doc: How to perform word wrapping ("hard" or "soft") + type: "Union[Literal['hard', 'soft'], None]" + readonly: + doc: "Whether this option is read-only, meaning it cannot be modified" + type: "Optional[bool]" + +option: + attributes: + selected: + doc: "Whether this option is the default selection within the `select` element" + type: "Optional[bool]" + disabled: + doc: "Whether this option is disabled, meaning it cannot be selected, and will not be submitted with the form." + type: "Optional[bool]" + value: + doc: "The value to use if this option is selected when submitting the form" + +select: + base: StylableTag + attributes: + required: + doc: Whether the input is required to submit the form it is contained within. + type: "Optional[bool]" + name: The name to use for this value when submitting the form. +