Kendo UI ResponsivePanel TagHelper ResponsivePanelTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-responsivepanel")]
public class ResponsivePanelTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseResponsivePanelTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-responsivepanel name="responsivePanel" auto-close="true"></kendo-responsivepanel>
Constructors
Initializes a new instance of the ResponsivePanelTagHelper class.
public ResponsivePanelTagHelper(IKendoHtmlGenerator generator)
Properties
If set to false the widget will not close when the page content is touched, after it was opened on a mobile device. You will need to call the close method when the panel needs to close.
public bool? AutoClose { get; set; }
Specifies the page width at which the widget will be hidden and its toggle button will become visible.
public double? Breakpoint { get; set; }
Specifies the nonce attribute that will be set to the inline style injected in the <head> tag containing the dynamic media query styles.
public string Nonce { get; set; }
The name of the JavaScript function that will handle the close event. Triggered before the responsive panel is closed. Cancellable.
public string OnClose { get; set; }
The name of the JavaScript function that will handle the open event. Triggered before the responsive panel is opened. Cancellable.
public string OnOpen { get; set; }
Specifies the direction from which the hidden element will open up, once the toggle button has been activated. Valid values are "left", "right", and "top".
public string Orientation { get; set; }
Specifies the selector for the toggle button that will show and hide the responsive panel.
public string ToggleButton { 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:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: