(Slot migration) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | ===Name=== | ||
+ | text | ||
+ | ===Type=== | ||
+ | _input | ||
+ | ===Synopsis=== | ||
+ | How to render a text input field | ||
+ | ===Description=== | ||
+ | _input elements of type="text" create input fields that let the user enter a text. This is probably one of the most used fields in a form. | ||
+ | ===Parameters=== | ||
+ | type="text" | ||
+ | |||
+ | All other valid parameters for an input field are valid. Additionally you can use the following attributes: | ||
+ | - list | ||
+ | - minlength | ||
+ | - maxlength | ||
+ | - pattern | ||
+ | - size | ||
+ | - spellcheck | ||
+ | ===Example=== | ||
+ | <syntaxhighlight lang="html"> | ||
+ | <_input type="text" name="uname" placeholder="Type your username" required="required" /> | ||
+ | </syntaxhighlight> | ||
+ | <_input type="text" name="uname" placeholder="Type your username" required="required" /> | ||
+ | ===Note=== | ||
+ | All attributes for a text input field are supported (like in this case : name, placeholder and required.) | ||
+ | ===Links=== | ||
+ | https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text | ||
ws-class-props | |||
---|---|---|---|
Line 5: | Line 5: | ||
|Doc sort order=110 | |Doc sort order=110 | ||
|Doc target group=User | |Doc target group=User | ||
+ | |Doc synopsis=How to render a text input field | ||
}} | }} |
Latest revision as of 15:15, 22 September 2022
Name
text
Type
_input
Synopsis
How to render a text input field
Description
_input elements of type="text" create input fields that let the user enter a text. This is probably one of the most used fields in a form.
Parameters
type="text"
All other valid parameters for an input field are valid. Additionally you can use the following attributes: - list - minlength - maxlength - pattern - size - spellcheck
Example
<_input type="text" name="uname" placeholder="Type your username" required="required" />
Note
All attributes for a text input field are supported (like in this case : name, placeholder and required.)
Links
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text