Kendo UI label TagHelper ChartXAxisPlotBandLabelSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("label", ParentTag = "chart-x-axis-plot-band", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "margin", "padding" })]
[SuppressTagRendering]
public class ChartXAxisPlotBandLabelSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseChartXAxisPlotBandLabelSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<x-axis>
<x-axis-item>
<plot-bands>
<chart-x-axis-plot-band>
<label align="center"></label>
</chart-x-axis-plot-band>
</plot-bands>
</x-axis-item>
</x-axis>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartXAxisPlotBandLabelSettingsTagHelper class.
public ChartXAxisPlotBandLabelSettingsTagHelper()
Properties
The position of the plotband label.The supported values are: "left" - the plotband label is positioned on the left; "right" - the plotband label is positioned on the right or "center" - the plotband label is positioned in the center.
public string Align { get; set; }
The background color of the label. Accepts a valid CSS color string, including hex and rgb.
public string Background { get; set; }
The text color of the label. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
The position of the label.The supported values are: "top" - the axis label is positioned on the top; "bottom" - the axis label is positioned on the bottom or "center" - the axis label is positioned in the center.
public string Position { get; set; }
The rotation angle of the label. By default the label is not rotated.
public double? Rotation { get; set; }
If set to false the chart will not display the label.
public bool? Visible { get; set; }
A function that can be used to create a custom visual for the label. 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.