Using Morph Data
<VariableSelect />
<VariableSelect>
is a component that displays a select box for entering values into a variable declared with the variable()
function.
Properties
variable
Variable
requiredVariable to bind the select box value
placeholder
string
Placeholder text
withClearButton
boolean
Display a clear button
VariableSelectItem
<VariableSelectItem
is a component for adding <VariableSelect>
option.
プロパティ
value
string
requiredThe value to be set in the variable
VariableSelectItems
<VariableSelectItems>
is a component for adding several <VariableSelectItem>
together.
Pass an array of objects or the return value of getJson
.
プロパティ
items
Array<{ [key: string]: string }> | ReturnType<getJson>
requiredArray of objects or the return value of getJson
valueKey
string
Key to get the value of the option from the object in items
labelKey
string
Key to get the label of the option from the object in items
その他のコンポーネント
<VariableSelectGroup>
… Grouped select box elements.<VariableSelectLabel>
… he label of the group.<VariableSelectSeparator>
… Separator line inserted between the choices in the select box.