The YAMLFieldInput component presents the appropriate input type for any YAML field whose value is an array. For YAML fields with non-array values, see
YAMLFieldInput
.Props
Name | Type | Default value | Required? | Description |
---|---|---|---|---|
field |
Field | - | Yes | Field to display. |
value |
any | - | Yes | Current value of the field. |
data |
Array | - | No | Options for special-case fields. |
Data
Name | Type | Default value | Description |
---|---|---|---|
countries |
Array.<String> | - | List of country codes retrieved from country-codes.json library file. |
languages |
Array.<String> | - | List of language codes retrieved from language-codes.json library file. |
Computed
Name | Type | Description |
---|---|---|
currentValue |
any | The current field value. Emits input event on change. |
Events
Name | Payload Type | Description |
---|---|---|
input |
any | Signal that the value of the field has been changed. |
Methods
-
updateValue(i, v)
-
Update the value of the field by changing the appropriate part of the array.
Parameters:
Name Type Description i
Number Index of the element to update. v
any New value.