New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI DrawerItem class

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class DrawerItem

Inheritance: objectDrawerItem

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

DrawerItem method.

C#
public DrawerItem()

Properties

Attr member.

C#
public IDictionary<string, object> Attr { get; set; }

Defines the class names of the generated item element.

C#
public string CssClass { get; set; }

Drawer member.

C#
public Drawer Drawer { get; set; }

Toggles the enabled state of the item.

C#
public bool? Enabled { get; set; }

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.

C#
public bool? Expanded { get; set; }
C#
public string Icon { get; set; }

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.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

C#
public DrawerItemIconSettings IconSettings { get; }

Items member.

C#
public List<DrawerItem> Items { get; set; }

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.

C#
public string MiniTemplateHandler { get; set; }

Toggles the selected state of the item.

C#
public bool? Selected { get; set; }

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

C#
public bool? Separator { get; set; }

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.

C#
public string TemplateHandler { get; set; }

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

C#
public string Text { get; set; }

Methods

Serialize current instance to Dictionary

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Serialize current instance to Dictionary

C#
protected virtual Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>