Kendo UI labels TagHelper LinearGaugeScaleLabelsSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("lineargauge-scale-labels", ParentTag = "scale", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "margin", "padding", "labels-template" })]
[SuppressTagRendering]
public class LinearGaugeScaleLabelsSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseLinearGaugeScaleLabelsSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-lineargauge name="lineargauge">
<scale>
<lineargauge-scale-labels background="#f2f2f2" />
</scale>
</kendo-lineargauge>
Child Tags
Constructors
Initializes a new instance of the LinearGaugeScaleLabelsSettingsTagHelper class.
public LinearGaugeScaleLabelsSettingsTagHelper()
Properties
The background color of the labels. Any valid CSS color string will work here, including hex and rgb
public string Background { get; set; }
The text color of the labels. Any valid CSS color string will work here, including hex and rgb.
public string Color { get; set; }
The label template. Template variables: value - the value.
public string Template { get; set; }
The label template. Template variables: value - the value. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
The label template. Template variables: value - the value. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Configures the templates for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The label template. Template variables: value - the value. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { 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.