DrawerItemBuilder

Methods

Attributes(System.Object)

Defines custom HTML attributes of the generated item element.

Parameters

attributes - System.Object

The object to be mapped to the attribute collection

RETURNS

Returns the current instance of DrawerItemBuilder for method chaining.

Attributes(System.Collections.Generic.IDictionary)

Defines custom HTML attributes of the generated item element.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The object to be mapped to the attribute collection

RETURNS

Returns the current instance of DrawerItemBuilder for method chaining.

Items(System.Action)

Specifies nested child items.

Parameters

configurator - System.Action<DrawerItemFactory>

The configurator for the items setting.

RETURNS

Returns the current instance of DrawerItemBuilder for method chaining.

Text(System.String)

Defines the text of the item. If not set, the generated item renders no text.

Parameters

value - System.String

The value for Text

RETURNS

Returns the current DrawerItemBuilder instance.

Icon(System.String)

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.

Parameters

value - System.String

The value for Icon

RETURNS

Returns the current DrawerItemBuilder instance.

Separator(System.Boolean)

Defines a separator item. When set to true, the Drawer renders a separator instead of a clickable item.

Parameters

value - System.Boolean

The value for Separator

RETURNS

Returns the current DrawerItemBuilder instance.

Separator()

Defines a separator item. When set to true, the Drawer renders a separator instead of a clickable item.

RETURNS

Returns the current DrawerItemBuilder instance.

Selected(System.Boolean)

Toggles the selected state of the item.

Parameters

value - System.Boolean

The value for Selected

RETURNS

Returns the current DrawerItemBuilder instance.

Selected()

Toggles the selected state of the item.

RETURNS

Returns the current DrawerItemBuilder instance.

Enabled(System.Boolean)

Toggles the enabled state of the item.

Parameters

value - System.Boolean

The value for Enabled

RETURNS

Returns the current DrawerItemBuilder instance.

CssClass(System.String)

Defines the class names of the generated item element.

Parameters

value - System.String

The value for CssClass

RETURNS

Returns the current DrawerItemBuilder instance.

TemplateHandler(System.String)

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.

Parameters

templateHandler - System.String

The handler that returs the template for Template

RETURNS

Returns the current DrawerItemBuilder instance.

Template(Kendo.Mvc.UI.Fluent.TemplateBuilder)

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.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the template.

RETURNS

Returns the current DrawerItemBuilder instance.

MiniTemplateHandler(System.String)

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.

Parameters

templateHandler - System.String

The handler that returs the template for MiniTemplate

RETURNS

Returns the current DrawerItemBuilder instance.

MiniTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

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.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the minitemplate.

RETURNS

Returns the current DrawerItemBuilder instance.

Expanded(System.Boolean)

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.

Parameters

value - System.Boolean

The value for Expanded

RETURNS

Returns the current DrawerItemBuilder instance.

Expanded()

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.

RETURNS

Returns the current DrawerItemBuilder instance.