Skip to content

Commit 5f9e1b2

Browse files
authored
Update image precedence docs (#68)
* chore(menu): Edited Data binding overview article * chore(treeview): Edited Data binding overview article
1 parent a54ec27 commit 5f9e1b2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

components/menu/data-binding/overview.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ The menu items provide the following features that you control through the corre
2828

2929
* `Id` - a unique identifier for the item. Required for binding to flat data.
3030
* `ParentId` - identifies the parent to whom the item belongs. Required only when binding to flat data. All items with the same `ParentId` will be rendered at the same level. For a root level item, this must be `null`.
31-
* `HasChildren` - can hide child items. The menu will fetch its children from the data source based on the `Id`-`ParentId` relationships (for flat data) or on the presence of the `Items` collection (for hierarchical data). @[template](/_contentTemplates/menu/basic-example.md#has-children-behavior)
31+
* `HasChildren` - can hide child items. The menu will fetch its children from the data source based on the `Id`-`ParentId` relationships (for flat data) or on the presence of the `Items` collection (for hierarchical data). @[template](/_contentTemplates/menu/basic-example.md#has-children-behavior)
3232
* `Items` - the collection of child items that will be rendered under the current item. Required only when binding to hierarchical data.
3333
* `Text` - the text that will be shown on the item.
34-
* `Icon` / `IconClass` / `ImageUrl` - the [Telerik icon]({%slug general-information/font-icons%}), a class for a custom font icon, or the URL to a raster image that will be rendered in the item. They have the listed order of precedence in case more than one is present in the data (that is, an `Icon` will have the highest importance).
34+
* `ImageUrl` / `Icon` / `ImageClass` - the [Telerik icon]({%slug general-information/font-icons%}), a class for a custom font icon, or the URL to a raster image that will be rendered in the item. They have the listed order of precedence in case more than one is present in the data (that is, an `ImageUrl` will have the highest importance).
3535
* `Url` - the view the item will navigate to by generating a link.
3636

3737
## Data Bindings
@@ -70,4 +70,3 @@ public class MenuItem
7070
* [Binding to Hierarchical Data]({%slug components/menu/data-binding/hierarchical-data%})
7171
* [Live Demo: Menu Flat Data](https://demos.telerik.com/blazor-ui/menu/flat-data)
7272
* [Live Demo: Menu Hierarchical Data](https://demos.telerik.com/blazor-ui/menu/hierarchical-data)
73-

components/treeview/data-binding/overview.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The treeview items provide the following features that you control through the c
3333
* `HasChildren` - whether the item has children. Determines whether an expand arrow is rendered next to the item. Required for binding to flat data and for load-on-demand. With hierarchical data, the treeview will render the icon based on the existence of child items, but `HasChildren` will take precedence.
3434
* `Items` - the collection of child items that will be rendered under the current item. Required only when binding to hierarchical data.
3535
* `Text` - the text that will be shown on the item.
36-
* `Icon` / `IconClass` / `ImageUrl` - the [Telerik icon]({%slug general-information/font-icons%}), a class for a custom font icon, or the URL to a raster image that will be rendered in the item. They have the listed order of precedence in case more than one is present in the data (that is, an `Icon` will have the highest importance).
36+
* `ImageUrl` / `Icon` / `IconClass` - the [Telerik icon]({%slug general-information/font-icons%}), a class for a custom font icon, or the URL to a raster image that will be rendered in the item. They have the listed order of precedence in case more than one is present in the data (that is, an `ImageUrl` will have the highest importance).
3737
* `Url` - the view the item will navigate to by generating a link.
3838

3939
## Data Bindings
@@ -94,7 +94,7 @@ If a certain level does not have an explicit data bindings tag, it will use the
9494
>caption How to use per-level data binding settings to change model fields
9595
9696
````CSHTML
97-
The third level will use the main data bindings settings that do not have a level specified
97+
The third level will use the main data bindings settings that do not have a level specified
9898
9999
<TelerikTreeView Data="@FlatData">
100100
<TreeViewBindings>
@@ -178,4 +178,3 @@ The third level will use the main data bindings settings that do not have a leve
178178
* [Live Demo: TreeView Hierarchical Data](https://demos.telerik.com/blazor-ui/treeview/hierarchical-data)
179179
* [Live Demo: TreeView Per-Level Data Bindings](https://demos.telerik.com/blazor-ui/treeview/bindings)
180180
* [Live Demo: TreeView Load on Demand](https://demos.telerik.com/blazor-ui/treeview/lazy-loading)
181-

0 commit comments

Comments
 (0)