Kendo UI ExpansionPanel TagHelper ExpansionPanelTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-expansionpanel")]
[RestrictChildren("content", new string[] { "animation" })]
public class ExpansionPanelTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseExpansionPanelTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-expansionpanel name="expansionpanel">
<content>
ExpansionPanel content
</content>
</kendo-expansionpanel>
Child Tags
Constructors
Initializes a new instance of the ExpansionPanelTagHelper class.
public ExpansionPanelTagHelper(IKendoHtmlGenerator generator)
Properties
The name of the collapse icon.
public string CollapseIconClass { get; set; }
If set to true the widget will be expanded by default.
public bool? Expanded { get; set; }
The class of the expand icon.
public string ExpandIconClass { get; set; }
The height of the widget. Numeric values are treated as pixels.
public double? Height { get; set; }
The name of the JavaScript function that will handle the collapse event. Fired when the widget is collapsed.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnCollapse { get; set; }
The name of the JavaScript function that will handle the complete event. Fired when the animation during collapse/expand is completed.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnComplete { get; set; }
The name of the JavaScript function that will handle the expand event. Fired when the widget is expanded.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnExpand { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the ExpansionPanel is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
If set to false the user will not be able to expand/collapse the widget.
public bool? Toggleable { 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: