No edit summary |
(Adding page to Category:TOC because it contains a TOC.) |
||
(One intermediate revision by one other user not shown) | |||
Line 27: | Line 27: | ||
{{Edited|July|12|2024}} | {{Edited|July|12|2024}} | ||
[[Category:View Model]] | [[Category:View Model]] | ||
[[Category:TOC]] |
Latest revision as of 13:47, 26 March 2024
Helper Text
Helper text conveys additional guidance about the input control, such as how it will be used. Helper text will only take up a single line below the input control and will be persistently visible.
To add Helper text to input control, create <ViewModelColumn>_HelperText column in the ViewModel Editor, where <ViewModelColumn> is the name of the column with input.
Placeholder
Placeholder text appears in the input control when it has no value set. Placeholder can be a tip for users on how to fill up this input control.
To add Placeholder to input control, create <ViewModelColumn>_Placeholder column in the ViewModel editor, where <ViewModelColumn> is the name of the column with input.
Input controls are rendered differently depending on the value type.
Please check out Databound Placeholder text for more information.
Text Types
For inputs intended as type text, this type can be overridden with something else. Use the tagged value text type on the column in the ViewModel.
- Password
- Tel
- URL
- Search
The type of browser used determines how these input types are rendered.
For further reference, look at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password
Inputs with Icons
You can add an icon to the input control to improve the visual presentation or give users the visual indicator of which type of input control it is.
To add an icon to the input control, set TaggedValue "Icon" on ViewModelColumn. The value of the TaggedValue should be the icon name (MDriven Turnkey uses Material Icons – you can find these icon names on the Google fonts website).
It is possible to choose an icon position in the input control. By default, the icon will be placed at the start of the input control (leading icon). You can change this position by setting TaggedValue "IconPosition" to "after".