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

Kendo UI ArcGauge TagHelper ArcGaugeTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-arcgauge")]
[RestrictChildren("colors", new string[] { "gauge-area", "scale", "center-template", "footer-template" })]
public class ArcGaugeTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperBaseArcGaugeTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()TagHelperBase.SerializeTemplates()TagHelperBase.GenerateId(TagHelperOutput)TagHelperBase.CreateHandler(string)TagHelperBase.GetRangeValidationParameter<TValue>(ModelExplorer, string)TagHelperBase.ExtractEditFormat(string)TagHelperBase.ToDictionaryHandler(IDictionary<string, string>)TagHelperBase.AddSelfToTemplate(TagHelperContext)TagHelperBase.ViewContextTagHelperBase.GeneratorTagHelperBase.InitializerTagHelperBase.WriterTagHelperBase.ScriptAttributesTagHelperBase.NameTagHelperBase.IdTagHelperBase.SelectorTagHelperBase.IdPrefixTagHelperBase.IsInClientTemplateTagHelperBase.DeferredTagHelperBase.AsModuleTagHelper.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-arcgauge name="arcgauge" value="65" />
   <scale min="0" max="100">
   </scale>
</kendo-arcgauge>

Constructors

Initializes a new instance of the ArcGaugeTagHelper class.

C#
public ArcGaugeTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

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

C#
public string CenterTemplate { 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 CenterTemplateHandler { 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 CenterTemplateId { get; set; }

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

C#
public IHtmlContent CenterTemplateView { get; set; }

The color of the value pointer. Accepts a valid CSS color string, including hex and rgb.

C#
public string Color { get; set; }

The opacity of the value pointer.

C#
public double? Opacity { get; set; }

Specifies the preferred widget rendering mode.

C#
public RenderingMode? RenderAs { get; set; }

Represents a collection of templates defined for the component.

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

Implements: ITemplateComponent.Templates

The gauge theme. With versions prior to R1 2023 this can be either the respective LESS theme from the list below or "sass". When set to "sass" the gauge will read the variables from the Sass-based themes.Note: Since Q2 2024 release, the default value for the theme property is "sass" instead of "default". It is recommended to use "sass" with version Q2 2024 or later.

C#
public string Theme { get; set; }

A value indicating if transition animations should be played.

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

The gauge value.

C#
public double? Value { get; set; }

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

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

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

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

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

C#
protected override Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Writes the HTML output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

The TagHelper output.

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)