kor TürkçeGitHub

SelectField

Finds and selects a single option by typing.

kor/ui/SelectFieldSource

When to use

  • Choose one item from a known list of values.

Examples

Select a delivery method

Loading the example

<k:SelectField label="Delivery" selectedKey="pickup" change=".onChange">
	<core:Item key="pickup" text="Pickup"/>
	<core:Item key="carrier" text="Carrier"/>
</k:SelectField>

Find a warehouse

Loading the example

<k:SelectField label="Warehouse" required="true" placeholder="Search by name" items="{path: '/options', templateShareable: false}" change=".onChange">
	<core:Item key="{key}" text="{text}"/>
</k:SelectField>

API

Properties

NameTypeDefaultDescription
selectedKeystringKey of the selected option
labelstringField label
placeholderstringPlaceholder
helpstringSupporting text
errorstringValidation message
requiredbooleanfalseWhether a selection is required
enabledbooleantrueWhether the field can be used

Aggregations

NameTypeDescription
itemssap.ui.core.Item[]Available options

Events

NameTypeDescription
changekey: stringSelection changed

Related

MultiSelectLookupField