ListBoxComponent
Represents the Kendo UI ListBox component for Angular. Provides a list of items from which you can select and transfer data between connected ListBoxes (see overview).
@Component({
selector: 'my-app',
template: `
<kendo-listbox
[data]="items"
textField="name"
[toolbar]="true">
</kendo-listbox>
`
})
export class AppComponent {
items = [
{ name: 'Item 1' },
{ name: 'Item 2' }
];
}
Selector
kendo-listbox
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
data |
|
|
Specifies the data that the ListBox displays. |
itemDisabled |
|
Specifies a function that determines if a specific item is disabled. | |
listboxLabel |
|
|
Specifies the value of the |
listboxToolbarLabel |
|
|
Specifies the value of the |
selectable |
|
|
Sets the selection mode of the ListBox. |
size |
|
Specifies the size of the component. | |
textField |
|
Specifies the field of the data item that provides the text content of the nodes. | |
toolbar |
|
|
Configures the toolbar of the ListBox. Specifies whether to display a toolbar and which tools and position to use. |
Fields
| Name | Type | Default | Description |
|---|---|---|---|
selectedIndices |
|
Gets the indexes of the currently selected items in the ListBox. |
Events
| Name | Type | Description |
|---|---|---|
action |
|
Fires when you click a ListBox item. |
selectionChange |
|
Fires when you select a different ListBox item. Also fires when you move a node, because moving changes its index. |
Methods
clearSelection |
|---|
|
Clears the ListBox selection programmatically. |
select | ||||||
|---|---|---|---|---|---|---|
|
Selects multiple ListBox nodes programmatically. | ||||||
|