From d0da5915bfd59a40df796687e65bf01f7adbdeec Mon Sep 17 00:00:00 2001 From: Hristian Stefanov Date: Fri, 8 Nov 2024 16:45:48 +0200 Subject: [PATCH 1/2] chore(ListView): add parameters section --- components/listview/overview.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/components/listview/overview.md b/components/listview/overview.md index 63de087eba..a0d76d2658 100644 --- a/components/listview/overview.md +++ b/components/listview/overview.md @@ -91,6 +91,24 @@ The ListView can refresh its data manually so the component can react to changes The ListView provides events related to editing and [loading data on demand]({%slug listview-manual-operations%}). [Read more about the Blazor ListView events]({%slug listview-events%}). +## ListView Parameters + +The table below lists the ListView parameters. For a full list of the ListView API members (parameters, methods, and events), check the [ListView API Reference](https://docs.telerik.com/blazor-ui/api/Telerik.Blazor.Components.TelerikListView-1). + +@[template](/_contentTemplates/common/parameters-table-styles.md#table-layout) + +| Parameter | Type and Default Value | Description | +| --- | --- | --- | +| `Class` | `string` | The `class` attribute of the `
` element. Use it to apply custom styles or [override the theme]({%slug themes-override%}). | +| `Data` | `IEnumerable` | The ListView component data collection. | +| `EnableLoaderContainer` | `bool`
(`true`) | The ListView loading container that is shown when there are long-running operations. | +| `Height` | `string` | The `height` style of the component in any [supported CSS unit]({%slug common-features/dimensions%}). The default ListView dimensions depend on the CSS theme. | +| `Page` | `int`
(`1`) | The current page of the ListView component. | +| `Pageable` | `bool`
(`false`) | Determines if the ListView allows paging. | +| `PageSize` | `int`
(`10`) | The number of items to display per page in the ListView. | +| `TItem` | `Type` | The ListView model type. Although the compiler can usually infer the type from the `Data` parameter, you can set `TItem` for [simpler syntax in the event handler declarations]({%slug listview-events%}). | +| `Width` | `string` | The `width` style of the component in any [supported CSS unit]({%slug common-features/dimensions%}). The default ListView dimensions depend on the CSS theme. | + ## Next Steps * [Implement ListView Templates]({%slug listview-templates%}) From 22dc9b00140c24a303d7b6a055881635efa95095 Mon Sep 17 00:00:00 2001 From: Hristian Stefanov Date: Tue, 12 Nov 2024 14:39:40 +0200 Subject: [PATCH 2/2] chore(ListView): apply changes as per comments --- components/listview/overview.md | 1 - 1 file changed, 1 deletion(-) diff --git a/components/listview/overview.md b/components/listview/overview.md index a0d76d2658..a6afb95775 100644 --- a/components/listview/overview.md +++ b/components/listview/overview.md @@ -106,7 +106,6 @@ The table below lists the ListView parameters. For a full list of the ListView A | `Page` | `int`
(`1`) | The current page of the ListView component. | | `Pageable` | `bool`
(`false`) | Determines if the ListView allows paging. | | `PageSize` | `int`
(`10`) | The number of items to display per page in the ListView. | -| `TItem` | `Type` | The ListView model type. Although the compiler can usually infer the type from the `Data` parameter, you can set `TItem` for [simpler syntax in the event handler declarations]({%slug listview-events%}). | | `Width` | `string` | The `width` style of the component in any [supported CSS unit]({%slug common-features/dimensions%}). The default ListView dimensions depend on the CSS theme. | ## Next Steps