Kendo UI CircularGauge TagHelper CircularGaugeTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-circulargauge")]
[RestrictChildren("colors", new string[] { "gauge-area", "scale" })]
public class CircularGaugeTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseCircularGaugeTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-circulargauge name="circulargauge" value="65" center-template="#:value#%">
<scale min="0" max="100">
</scale>
</kendo-circulargauge>
Child Tags
Constructors
Initializes a new instance of the CircularGaugeTagHelper class.
public CircularGaugeTagHelper(IKendoHtmlGenerator generator)
Properties
The label template. Template variables: * value - the value
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.
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.
public string CenterTemplateId { get; set; }
The label template. Template variables: * value - the value This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent CenterTemplateView { get; set; }
The color of the value pointer. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
Specifies the preferred widget rendering mode.
public RenderingMode? RenderAs { get; set; }
Configures the templates for the CircularGauge.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
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.
public string Theme { get; set; }
A value indicating if transition animations should be played.
public bool? Transitions { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Serializes the defined templates.
protected override Dictionary<string, object> SerializeTemplates()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: