DrawerItemBuilder
Defines the fluent API for configuring the DrawerItem settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DrawerItemBuilder
Inheritance: objectDrawerItemBuilder
Inherited Members
Constructors
Initialize the DrawerItemBuilder
Methods
public DrawerItemBuilder Attributes(IDictionary<string, object> attributes)
Defines the class names of the generated item element.
public DrawerItemBuilder CssClass(string value)
The value that configures the cssclass.
Returns:Toggles the enabled state of the item.
public DrawerItemBuilder Enabled(bool value)
The value that configures the enabled.
Returns:Toggles 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.
public DrawerItemBuilder Expanded(bool value)
The value that configures the expanded.
Returns:Defines the name for an existing icon in a Kendo UI theme.See web font icons help article for more details on Kendo UI icons.
public DrawerItemBuilder Icon(string value)
The value that configures the icon.
Returns:public DrawerItemBuilder Items(Action<DrawerItemFactory> configurator)
Sets 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.
public DrawerItemBuilder MiniTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the minitemplate.
Returns:Sets 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.
public DrawerItemBuilder MiniTemplateHandler(string value)
The value that configures the minitemplate.
Returns:Toggles the selected state of the item.
public DrawerItemBuilder Selected(bool value)
The value that configures the selected.
Returns:Defines a separator item. When set to true, the Drawer renders a separator instead of a clickable item.
public DrawerItemBuilder Separator(bool value)
The value that configures the separator.
Returns:Sets 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.
public DrawerItemBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Sets 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.
public DrawerItemBuilder TemplateHandler(string value)
The value that configures the template.
Returns:Defines the text of the item. If not set, the generated item renders no text.
public DrawerItemBuilder Text(string value)
The value that configures the text.
Returns: