Kendo UI subtitle TagHelper ChartSubtitleSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[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:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<chart-subtitle align="center" />
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartSubtitleSettingsTagHelper class.
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.
public string Align { get; set; }
The background color of the subtitle. Accepts a valid CSS color string, including hex and rgb.
public string Background { get; set; }
The text color of the subtitle. Accepts a valid CSS color string, including hex and rgb.
public string Color { 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.
public string Position { get; set; }
The text of the chart subtitle. You can also set the text directly for a title with default options.
public string Text { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.