Kendo UI title TagHelper ChartXAxisTitleSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("chart-x-axis-item-title", ParentTag = "x-axis-item", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "margin", "padding" })]
[SuppressTagRendering]
public class ChartXAxisTitleSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseChartXAxisTitleSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<x-axis>
<x-axis-item>
<chart-x-axis-item-title background="#ffeeaa"></chart-x-axis-item-title>
</x-axis-item>
</x-axis>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartXAxisTitleSettingsTagHelper class.
public ChartXAxisTitleSettingsTagHelper()
Properties
The background color of the title. Accepts a valid CSS color string, including hex and rgb.
public string Background { get; set; }
The text color of the title. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
Specifies the title position.
public ChartAxisTitlePosition? Position { get; set; }
The rotation angle of the title. By default the title is not rotated.
public double? Rotation { get; set; }
If set to true the chart will display the scatter chart x axis title. By default the scatter chart x axis title is visible.
public bool? Visible { get; set; }
A function that can be used to create a custom visual for the title. The available argument fields are: text - the label text.; rect - the kendo.geometry.Rect that defines where the visual should be rendered.; sender - the chart instance (may be undefined).; options - the label options. or createVisual - a function that can be used to get the default visual..
public string Visual { 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.