ListViewComponent
Represents the Kendo UI ListView component for Angular.
Selector
kendo-listview
Export Name
Accessible in templates as #kendoListViewInstance="kendoListView"
Inputs
Name | Type | Default | Description |
---|---|---|---|
bordered |
|
|
Specifies if a border should be rendered around the listview element. |
containerClass |
|
The CSS class that will be rendered on the content container element of the ListView.
Supports the type of values that are supported by | |
containerLabel |
|
Specifies the content container | |
containerRole |
|
Specifies the content container | |
containerStyle |
|
The CSS styles that will be rendered on the content container element of the ListView.
Supports the type of values that are supported by | |
data |
|
The data collection that will be used to populate the ListView (see data binding examples). | |
height |
|
Defines the height (in pixels) of the ListView component.
If the content height exceeds the component height, a vertical scrollbar will be rendered.
To set the height of the ListView, you can also use | |
itemClass |
|
The CSS class that will be rendered on each item element wrapper of the ListView.
Supports the type of values that are supported by | |
itemStyle |
|
The CSS styles that will be rendered on each item element wrapper of the ListView.
Supports the type of values that are supported by | |
listItemRole |
|
Specifies the list item | |
loading |
|
Specifies if the loading indicator of the ListView will be displayed (see example). | |
navigable |
|
Specifies whether the keyboard navigation is enabled (see example). By default, the navigation is disabled. | |
pageable |
|
Configures whether the ListView will render a pager (more details). Providing a boolean value will render a pager with the default settings. | |
pageSize |
|
Defines the page size used by the ListView pager (more details). | |
skip |
|
Defines the number of records to be skipped by the pager (more details). |
Fields
Name | Type | Default | Description |
---|---|---|---|
activeIndex |
|
Gets the current active item index
(see example).
Returns |
Events
Name | Type | Description |
---|---|---|
add |
|
Fires when the user clicks the Add command button to add a new item (see example). |
cancel |
|
Fires when the user clicks the Cancel command button to close an item (see example). |
edit |
|
Fires when the user clicks the Edit command button to edit an item (see example). |
pageChange |
|
Fires when the page or the page size of the ListView is changed (see example). You have to handle the event yourself and page the data. |
pageSizeChange |
|
Fires when the page size of the ListView is changed. This event can be prevented ( |
remove |
|
Fires when the user clicks the Remove command button to remove an item (see example). |
save |
|
Fires when the user clicks the Save command button to save changes in an item (see example). |
scrollBottom |
|
Fires when the user scrolls to the last record on the page (see endless scrolling example). |
Methods
addItem | ||||||
---|---|---|---|---|---|---|
Creates a new item editor (see example). | ||||||
|
closeItem | ||||||
---|---|---|---|---|---|---|
Closes the editor for a given item (see example). | ||||||
|
editItem | |||||||||
---|---|---|---|---|---|---|---|---|---|
Switches the specified item to edit mode (see example). | |||||||||
|
focus | ||||||
---|---|---|---|---|---|---|
Focuses the item at the specified index (see example):
| ||||||
|