New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI labels TagHelper LinearGaugeScaleLabelsSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-lineargauge name="lineargauge">
    <scale>
        <lineargauge-scale-labels background="#f2f2f2" />
    </scale>
</kendo-lineargauge>

Constructors

Initializes a new instance of the LinearGaugeScaleLabelsSettingsTagHelper class.

C#
public LinearGaugeScaleLabelsSettingsTagHelper()

Properties

The background color of the labels. Any valid CSS color string will work here, including hex and rgb

C#
public string Background { get; set; }

The text color of the labels. Any valid CSS color string will work here, including hex and rgb.

C#
public string Color { get; set; }

The font style of the labels.

C#
public string Font { get; set; }

The format of the labels.

C#
public string Format { get; set; }

The label template. Template variables: value - the value.

C#
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.

C#
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.

C#
public string TemplateId { get; set; }

Configures the templates for the component.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

The label template. Template variables: value - the value. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent TemplateView { get; set; }

The visibility of the labels.

C#
public bool? Visible { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>