Input Controls

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.

Input control with helper text

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 control with placeholder

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
  • Email
  • 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".

Input control with leading icon
Input control with trailing icon
Input control with leading icon and placeholder
This page was edited 28 days ago on 06/17/2024. What links here