List View Component
Props
The following table outlines the props for the List View component:
| Name | Type | Default | Description |
|---|---|---|---|
| checkBox | boolean | false | The |
| checkBoxPosition | CheckBoxPosition | CheckBoxPosition.Left | The |
| dataSource | { [key: string]: Object }[] | DataManager | [ ] | The |
| disabled | boolean | false | The |
| fields | FieldsMapping | defaultMappedFields | The |
| groupTemplate | Function | node | - | The ListView has an option to custom design the group header title with the help of |
| header | Function | node | - | The ListView has an option to custom design the ListView header title with the help of |
| itemTemplate | Function | node | - | The ListView component supports to customize the content of each list items with the help of |
| query | Query | - | The |
| sortOrder | SortOrder | SortOrder.None | The
|
| virtualization | VirtualizationProps | - | Provides configuration options for enabling and managing virtualization in the ListView component. Virtualization enhances performance by only rendering items that are currently visible in the viewport. |
Events
The following table outlines the events for the List View component:
| Name | Type | Description |
|---|---|---|
| onActionBegin | ( ) => void | Triggers before the data binding process starts in ListView component. |
| onActionComplete | ( ) => void | Triggers after the data binding process completes in ListView component. |
| onActionFailure | (event: object) => void | Triggers, when the data fetch request from the remote server, fails. |
| onScroll | (event: ScrolledEvent) => void | Triggers when the ListView component is scrolled. |
| onSelect | (event: ClickEvent) => void | Triggers when we click the ListView item in the component. |