DrawerTagHelper
Kendo UI Drawer TagHelper DrawerTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-drawer")]
[RestrictChildren("content", new string[] { "mini", "items-template", "drawer-items" })]
public class DrawerTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseDrawerTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-drawer name="drawer" mini="true">
</kendo-drawer>
Child Tags
Constructors
Initializes a new instance of the DrawerTagHelper class.
Properties
Specifies if the Drawer will be automatically collapsed when an item is clicked.
public bool? AutoCollapse { get; set; }
Specifies if the Drawer will be expanded by default.
public bool? Expanded { get; set; }
Specifies the minimum height for the drawer in push mode. The overlay mode takes 100% of the page height.
public double? MinHeight { get; set; }
Determines how the Kendo UI Drawer will interact with the associated content. The default one (overlay) will simply overlap the associated content with overlay effect. On the other hand "push" mode will show the drawer next to associated cotent. The associated content will shrink its content.
public string Mode { get; set; }
If set to true the use could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
public bool? Navigatable { get; set; }
The name of the JavaScript function that will handle the hide event. Fired when the Kendo UI Drawer is about to be hidden. The event can be prevented by calling the preventDefault method of the event parameter.
public string OnHide { get; set; }
The name of the JavaScript function that will handle the itemClick event. Fires when the user clicks an item in the Kendo UI Drawer.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnItemClick { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the Drawer is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the show event. Fires before the Kendo UI Drawer is revealed. The event can be prevented by calling the preventDefault method of the event parameter.
public string OnShow { get; set; }
The position of the drawer. Can be left (default) or right.
public string Position { get; set; }
If set to false, swiping the associated content will not activate the drawer. In this case, the drawer will only be open by calling the show method. should be disabled for browsers, which use side swiping gestures for back/forward navigation, such as iOS Safari. Otherwise, users should swipe from an inner part of the view, and not from the view edge.
public bool? SwipeToOpen { get; set; }
Specifies the drawer's content. When configured, it takes precedence over items.
public string Template { get; set; }
Specifies the drawer's content. When configured, it takes precedence over items. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
Specifies the drawer's content. When configured, it takes precedence over items. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Configures the templates for the Drawer.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
Specifies the drawer's content. When configured, it takes precedence over items. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Serializes the defined templates.
protected override Dictionary<string, object> SerializeTemplates()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: