Default Value
| Identifier | defaultValue |
| Allows Multiple | false |
Description
Section titled “Description”The defaultValue argument allows for the specification of a custom default value for the input field.
A default value is displayed when the value of the bind target is null or invalid.
Note that input fields only change the bound value when they are interacted with.
This holds true for the defaultValue argument as well, meaning the default value will not be automatically written to the bind target.
See also the placeholder argument.
Values
Section titled “Values”The input field argument defaultValue accepts the following value configurations.
-
defaultValue(value: any)
Allowed Input Fields
Section titled “Allowed Input Fields”
The input field argument defaultValue can be used on all input fields.
Examples
Section titled “Examples”INPUT[number(defaultValue(-1)):bind_target]