Skip to content

Commit c00e054

Browse files
docs(drawer): note about template functionality
1 parent a9c78e6 commit c00e054

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/drawer/templates.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ Make sure that the `<Content>` tag is outside of the `<Template>` - the `<Conten
9090
9191
Using the `<Template>` and `<ItemTemplate>` together is not possible - the Template removes any built-in rendering from the Drawer.
9292

93+
>important Using the template takes functionality away from the drawer because it no longer controls its own rendering. For example, appearance of the items, focused states, keyboard navigation, page navigation and clicks are no longer controlled by the Drawer component and need to be implemented by the application template.
94+
9395
>caption Using a template with manual item selection, header and footer
9496
9597
````CSHTML
@@ -170,7 +172,7 @@ Using the `<Template>` and `<ItemTemplate>` together is not possible - the Templ
170172
public DrawerItem SelectedItem { get; set; }
171173
public bool DrawerExpanded { get; set; } = true;
172174
public IEnumerable<DrawerItem> Data { get; set; } = new List<DrawerItem>
173-
{
175+
{
174176
new DrawerItem {Text = "Shopping Cart", Icon = "cart", Description = "Items in shopping cart"},
175177
new DrawerItem {Text = "Settings", Icon = "gear", Description = "My profile settings"},
176178
new DrawerItem {Text = "Notifications", Icon = "notification", Description = "My profile notifications"},

0 commit comments

Comments
 (0)