ArcGaugeTagHelper
Kendo UI ArcGauge TagHelper ArcGaugeTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-arcgauge")]
[RestrictChildren("colors", new string[] { "gauge-area", "scale", "center-template", "footer-template" })]
public class ArcGaugeTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseArcGaugeTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-arcgauge name="arcgauge" value="65" />
<scale min="0" max="100">
</scale>
</kendo-arcgauge>
Child Tags
Constructors
Initializes a new instance of the ArcGaugeTagHelper class.
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; }
Represents a collection of templates defined for the component.
[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.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.
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:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: