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 |
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 |
---|---|---|---|
selectedIndex |
|
Gets the index of the currently selected item in the ListBox. |
Events
Name | Type | Description |
---|---|---|
actionClick |
|
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. |
selectItem | ||||||
---|---|---|---|---|---|---|
Selects a ListBox node programmatically. | ||||||
|