Kendo UI crosshair TagHelper ChartYAxisCrosshairSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("crosshair", ParentTag = "y-axis-item", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("chart-y-axis-crosshair-tooltip", new string[] { })]
[SuppressTagRendering]
public class ChartYAxisCrosshairSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseChartYAxisCrosshairSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<y-axis>
<y-axis-item>
<crosshair color="#FF0000"></crosshair>
</y-axis-item>
</y-axis>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartYAxisCrosshairSettingsTagHelper class.
public ChartYAxisCrosshairSettingsTagHelper()
Properties
The color of the crosshair. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
The dash type of the crosshair.The following dash types are supported: "dash" - a line consisting of dashes; "dashDot" - a line consisting of a repeating pattern of dash-dot; "dot" - a line consisting of dots; "longDash" - a line consisting of a repeating pattern of long-dash; "longDashDot" - a line consisting of a repeating pattern of long-dash-dot; "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot or "solid" - a solid line.
public DashType? DashType { get; set; }
The opacity of the crosshair. By default the crosshair is opaque.
public double? Opacity { get; set; }
If set to true the chart will display the scatter chart y axis crosshair. By default the scatter chart y axis crosshair is not visible.
public bool? Visible { 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.