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

Kendo UI labels TagHelper SankeyLinksLabelsSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("labels", ParentTag = "links", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class SankeyLinksLabelsSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperChildBaseSankeyLinksLabelsSettingsTagHelper

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-sankey name="sankey">
    <links>
        <labels aria-template="Link from Source to Target"></labels>
    </links>
    <data>
        <nodes>
            <node id="1">
                <label text="Source">
                </label>
            </node>
            <node id="2">
                <label text="Target"></label>
            </node>
        </nodes>
        <links>
            <link source-id="1" target-id="2" value="12"/>
        </links>
    </data>
</kendo-sankey>

Constructors

Initializes a new instance of the SankeyLinksLabelsSettingsTagHelper class.

C#
public SankeyLinksLabelsSettingsTagHelper()

Properties

The template that will be used for the aria-label attribute of the link.

C#
public string AriaTemplate { get; set; }

The template that will be used for the aria-label attribute of the link. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string AriaTemplateHandler { get; set; }

The template that will be used for the aria-label attribute of the link. This option expects the ID of the script element that contains the template.

C#
public string AriaTemplateId { get; set; }

The template that will be used for the aria-label attribute of the link. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent AriaTemplateView { get; set; }

Configures the templates for the SankeyLinksLabelsSettings.

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

Implements: ITemplateComponent.Templates

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>