Skip to main content

textField

Description

binds combo options to the input field by the specified key

Type

string

Default value

"label"

Example

<script>
const dataset = [
{id:1, name:"First option"},
{id:2, name:"Second option"},
{id:3, name:"Third option"}
]
</script>

<!-- "name" is the label of a field in the data set
that will be rendered as the text of options in a combo -->
<Combo options={dataset} textField="name" />

Related article: Configuring the text of the selected option

Related sample: Combo