placeholder

Optional

Type: string (static text, a format string or the return value of a JS/TS function)

Default: Depends on the component. See the reference table below.

Override the default placeholder text for the input component.

Note: once the user entered a value the placeholder is no longer visible.

Example - placeholder on a text-input

main.view.xml
<var name="notes" type="text"/>

<text-input bind="notes" placeholder="Notes"/>

Default placeholder value per component

UI componentDefault placeholder

"Select date"

"Select date" and "Select time"

"No model found"

"No value selected"

"No value selected"

"Enter " + the text-input label

Last updated