MultiSelectComponent
Represents the Kendo UI MultiSelect component for Angular.
@Component({
selector: 'my-app',
template: `
<kendo-multiselect [data]="listItems">
</kendo-multiselect>
`
})
class AppComponent {
public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
}
Selector
kendo-multiselect
Export Name
Accessible in templates as #kendoMultiSelectInstance="kendoMultiSelect"
Inputs
Name | Type | Default | Description |
---|---|---|---|
adaptiveMode |
|
Enables or disables the adaptive mode. By default the adaptive rendering is disabled. | |
allowCustom |
|
Specifies whether the MultiSelect allows user-defined values that are not present in the dataset
(more information and examples).
Defaults to The feature is not available when using adaptive mode. | |
autoClose |
|
|
Determines whether to close the options list of the MultiSelect after the item selection is finished (see example). |
checkboxes |
|
Specifies whether checkboxes will be rendered before each item in the popup list. | |
clearButton |
|
If set to | |
data |
|
Sets the data of the MultiSelect.
| |
disabled |
|
Sets the disabled state of the component. To learn how to disable the component in reactive forms, refer to the article on Forms Support. | |
fillMode |
|
Sets the fillMode of the component. The possible values are:
| |
filterable |
|
Enables the filtering functionality of the MultiSelect. | |
inputAttributes |
|
Sets the HTML attributes of the inner focusable input element. Attributes which are essential for certain component functionalities cannot be changed. | |
itemDisabled |
|
Defines a Boolean function that is executed for each data item in the component (see examples). Determines whether the item will be disabled. | |
listHeight |
|
Sets the height of the options list in the popup. By default,
| |
loading |
|
Sets and gets the loading state of the MultiSelect. | |
placeholder |
|
The hint which is displayed when the component is empty. When the values are selected, it disappears. | |
popupSettings |
|
Configures the popup of the MultiSelect. The available options are:
| |
readonly |
|
|
Sets the read-only state of the component. |
rounded |
|
Sets the border radius of the component. The possible values are:
| |
showStickyHeader |
|
Shows or hides the current group sticky header when using grouped data. By default the sticky header is displayed (see example). | |
size |
|
Sets the size of the component. The possible values are:
| |
subtitle |
|
Sets the subtitle of the ActionSheet that is rendered instead of the Popup when using small screen devices.
By default the ActionSheet subtitle uses the text provided for the | |
tabindex |
|
Specifies the | |
tagMapper |
|
A user-defined callback function which receives an array of selected data items and maps them to an array of tags (see examples). | |
textField |
|
Sets the data item field that represents the item text. If the data contains only primitive values, do not define it.
| |
title |
|
Sets the title of the ActionSheet that is rendered instead of the Popup when using small screen devices. By default the ActionSheet title uses the text provided for the label of the AutoComplete. | |
value |
|
Sets the value of the MultiSelect. It can be either of the primitive (string, numbers) or of the complex (objects) type.
To define the type, use the
| |
valueField |
|
Sets the data item field that represents the item value. If the data contains only primitive values, do not define it.
| |
valueNormalizer |
|
A user-defined callback function which returns normalized custom values.
Typically used when the data items are different from type ts
| |
valuePrimitive |
|
Specifies the type of the selected value.
If set to | |
virtual |
|
Enables the virtualization functionality. |
Fields
Name | Type | Default | Description |
---|---|---|---|
isOpen |
|
Returns the current open state. Returns |
Events
Name | Type | Description |
---|---|---|
close |
|
Fires each time the popup is about to close (see example). This event is preventable. If you cancel it, the popup will remain open. |
closed |
|
Fires after the popup has been closed. |
filterChange |
|
Fires each time the user types in the input field. You can filter the source based on the passed filtration value. |
inputBlur |
|
Fires each time the |
inputFocus |
|
Fires each time the user focuses the |
blur |
|
Fires each time the MultiSelect gets blurred. |
focus |
|
Fires each time the user focuses the MultiSelect. |
open |
|
Fires each time the popup is about to open (see example). This event is preventable. If you cancel it, the popup will remain closed. |
opened |
|
Fires after the popup has been opened. |
removeTag |
|
Fires each time a tag is about to be removed(see examples). This event is preventable. If you cancel it, the tag will not be removed. |
valueChange |
|
Fires each time the value is changed—
when the component is blurred or the value is cleared through the Clear button
(see example).
When the value of the component is programmatically changed to |
Methods
blur |
---|
Blurs the MultiSelect. |
focus |
---|
Focuses the MultiSelect. |
focusItemAt | ||||||
---|---|---|---|---|---|---|
Focuses a specific item of the MultiSelect based on a provided index. If there is a custom item it is positioned at index -1. If null or invalid index is provided the focus will be removed. | ||||||
|
reset |
---|
Resets the value of the MultiSelect.
If you use the |
toggle | ||||||
---|---|---|---|---|---|---|
Toggles the visibility of the popup or actionSheet
(see example).
If you use the | ||||||
|