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

Kendo UI subtitle TagHelper ChartSubtitleSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("chart-subtitle", ParentTag = "kendo-chart", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "margin", "padding" })]
[SuppressTagRendering]
public class ChartSubtitleSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseChartSubtitleSettingsTagHelper

Implements: ITagHelperITagHelperComponent

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-chart name="chart">
    <chart-subtitle align="center" />
</kendo-chart>

Constructors

Initializes a new instance of the ChartSubtitleSettingsTagHelper class.

C#
public ChartSubtitleSettingsTagHelper()

Properties

The alignment of the subtitle. "center" - the text is aligned to the middle.; "left" - the text is aligned to the left. or "right" - the text is aligned to the right.. By default, the subtitle has the same alignment as the title.

C#
public string Align { get; set; }

The background color of the subtitle. Accepts a valid CSS color string, including hex and rgb.

C#
public string Background { get; set; }

The text color of the subtitle. Accepts a valid CSS color string, including hex and rgb.

C#
public string Color { get; set; }

The font of the title.

C#
public string Font { get; set; }

The position of the subtitle. "bottom" - the title is positioned on the bottom. or "top" - the title is positioned on the top.. By default, the subtitle is placed in the same position as the title.

C#
public string Position { get; set; }

The text of the chart subtitle. You can also set the text directly for a title with default options.

C#
public string Text { get; set; }

If set to true the chart will display the subtitle. By default the subtitle will be displayed.

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

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>