Items
configurationSpecifies the items rendered by the Drawer when the top-level template option is not set. Each item can define text, icon, state, custom attributes, per-item template functions, and nested child items through items.items. If template is configured, it takes precedence and the items configuration is ignored.
items
Arrayitems.attr
ObjectDefines custom HTML attributes of the generated item element.
items.cssClass
StringDefines the class names of the generated item element.
items.enabled
BooleanToggles the enabled state of the item.
Default: true
items.expanded
BooleanToggles the initial expanded state of the item. When set to true, the item starts expanded and its child items are visible. Clicking a parent item toggles expand and collapse regardless of this setting.
Default: false
items.icon
StringDefines the name for an existing icon in a Kendo UI theme.
See web font icons help article for more details on Kendo UI icons.
items.items
ArraySpecifies nested child items. The Drawer renders child items recursively by using the same item configuration surface.
items.miniTemplate
FunctionSets a custom template function for the item in mini mode. The implemented items surface supports function values only. The function must return the item markup used while the Drawer is collapsed in mini mode. If mini.template is configured, it takes precedence over items.miniTemplate.
items.selected
BooleanToggles the selected state of the item.
Default: false
items.separator
BooleanDefines a separator item. When set to true, the Drawer renders a separator instead of a clickable item.
Default: false
items.template
FunctionSets a custom template function for the item. The implemented items surface supports function values only. The function must return the item markup. If the top-level template option is configured, it takes precedence over items and per-item templates are not used.
items.text
StringDefines the text of the item. If not set, the generated item renders no text.