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

Kendo UI ExpansionPanel TagHelper ExpansionPanelTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-expansionpanel")]
[RestrictChildren("content", new string[] { "animation" })]
public class ExpansionPanelTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperBaseExpansionPanelTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()TagHelperBase.SerializeTemplates()TagHelperBase.GenerateId(TagHelperOutput)TagHelperBase.CreateHandler(string)TagHelperBase.GetRangeValidationParameter<TValue>(ModelExplorer, string)TagHelperBase.ExtractEditFormat(string)TagHelperBase.ToDictionaryHandler(IDictionary<string, string>)TagHelperBase.AddSelfToTemplate(TagHelperContext)TagHelperBase.ViewContextTagHelperBase.GeneratorTagHelperBase.InitializerTagHelperBase.WriterTagHelperBase.ScriptAttributesTagHelperBase.NameTagHelperBase.IdTagHelperBase.SelectorTagHelperBase.IdPrefixTagHelperBase.IsInClientTemplateTagHelperBase.DeferredTagHelperBase.AsModuleTagHelper.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-expansionpanel name="expansionpanel">
    <content>
       ExpansionPanel content
    </content>
</kendo-expansionpanel>

Constructors

Initializes a new instance of the ExpansionPanelTagHelper class.

C#
public ExpansionPanelTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

The name of the collapse icon.

C#
public string CollapseIconClass { get; set; }

If set to true the widget will be disabled.

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

If set to true the widget will be expanded by default.

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

The class of the expand icon.

C#
public string ExpandIconClass { get; set; }

The height of the widget. Numeric values are treated as pixels.

C#
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.

C#
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.

C#
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.

C#
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.

C#
public string OnKendoKeydown { get; set; }

The subtitle of the widget.

C#
public string SubTitle { get; set; }

The title of the widget.

C#
public string Title { get; set; }

If set to false the user will not be able to expand/collapse the widget.

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

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

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

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

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

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

C#
protected override Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

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

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Writes the HTML output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

The TagHelper output.

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)