LinearGaugeTagHelper
Kendo UI LinearGauge TagHelper LinearGaugeTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-lineargauge")]
[RestrictChildren("gauge-area", new string[] { "lineargauge-pointers", "scale" })]
public class LinearGaugeTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseLinearGaugeTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-lineargauge name="gauge">
<scale min="0" max="200">
</scale>
<lineargauge-pointers>
<pointer value="10"></pointer>
</lineargauge-pointers>
</kendo-lineargauge>
Child Tags
Constructors
Initializes a new instance of the LinearGaugeTagHelper class.
public LinearGaugeTagHelper(IKendoHtmlGenerator generator)
Properties
Sets the preferred rendering engine. If it is not supported by the browser, the Gauge will switch to the first available mode.The supported values are: "svg" - renders the widget as inline SVG document, if available or "canvas" - renders the widget as a Canvas element, if available..
public RenderingMode? RenderAs { get; set; }
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.The supported values are: "sass"; "black"; "blueopal"; "bootstrap"; "default"; "highcontrast"; "metro"; "metroblack"; "moonlight"; "silver" or "uniform".
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: