Select Form Control¶
The select
Form Control wraps Angular Material's mat-select
.
HTML | |
---|---|
Inputs¶
availableValues
: an array of items, the data source.displayNameField
: the field of each item that will be shown to the user.valueField
: the field of each item that will be set as the value for the Form Control.multiple
: whether it's multiple selection or not.
Outputs¶
selectionChange
can be used to receive an event when a selection is made.
Usually, you wanna use this in combination with [multiple]
to simplify
typings.
Configuring [multiple]
also configures the resulting type of
selectionChange
. It will either be a SingleSelectionChangeEvent
or a
MultiSelectionChangeEvent
, depending on the value of [multiple]
.
Example¶
HTML | |
---|---|