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

Kendo UI mini TagHelper DrawerMiniSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("mini", ParentTag = "kendo-drawer", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("mini-mode-items-template", new string[] { })]
[SuppressTagRendering]
public class DrawerMiniSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperChildBaseDrawerMiniSettingsTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-drawer name="drawer">
    <mini enabled="true"></mini>
</kendo-drawer>

Constructors

Initializes a new instance of the DrawerMiniSettingsTagHelper class.

C#
public DrawerMiniSettingsTagHelper()

Properties

Enables or disables the configuration.

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

Defines a specific template for the Kendo UI Drawer when in mini mode. When configured, it takes precedence over items.miniTemplate.

C#
public string Template { get; set; }

Defines a specific template for the Kendo UI Drawer when in mini mode. When configured, it takes precedence over items.miniTemplate. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string TemplateHandler { get; set; }

Defines a specific template for the Kendo UI Drawer when in mini mode. When configured, it takes precedence over items.miniTemplate. This option expects the ID of the script element that contains the template.

C#
public string TemplateId { get; set; }

Configures the templates for the DrawerItem in mini mode.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

Defines a specific template for the Kendo UI Drawer when in mini mode. When configured, it takes precedence over items.miniTemplate. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent TemplateView { get; set; }

Defines a specific width for the Kendo UI Drawer when in mini mode.

C#
public double? Width { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

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

Dictionary<string, object>

Serializes the defined templates.

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

Dictionary<string, object>