Custom Rendering
The Drawer enables you to customize the content of its items.
To customize the appearance of the items, use the item
property of the Drawer.
The following example demonstrates how to customize the look and feel of the drawer items.
Items
Hierarchical Drawer
The Drawer component works with a flat structure of items by design. However many real world scenarios require a navigation with hierarchical structure.
The following example demonstrates how to achieve this by toggling the visibility of the Drawer items depending on the currently selected item.
The level
property of each item sets its level of nesting beneath the parent element in the hierarchy tree.