Kendo UI CircularProgressBar TagHelper CircularProgressBarTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-circularprogressbar")]
[RestrictChildren("colors", new string[] { })]
public class CircularProgressBarTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseCircularProgressBarTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-circularprogressbar name="progressbar" value=0>
<colors>
<color to=25 color="#C0392B"/>
<color from=25 to=50 color="#D35400"/>
<color from=50 to=75 color="#D4AC0D"/>
<color from=75 to=99 color="#58D68D"/>
<color from=99 color="#229954"/>
</colors>
</kendo-circularprogressbar>
Child Tags
Constructors
Initializes a new instance of the CircularProgressBarTagHelper class.
public CircularProgressBarTagHelper(IKendoHtmlGenerator generator)
Properties
If set to true the Circular ProgressBar will have its role attribute set to progressbar. It will also render its aria-valuemin, aria-valuemax, and aria-valuenow attributes.
public bool? AriaRole { get; set; }
The template that will be displayed in the center of the progress bar. Template variables: * value - the value * color - the matching color for the value
public string CenterTemplate { get; set; }
The template that will be displayed in the center of the progress bar. Template variables: * value - the value * color - the matching color for 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 template that will be displayed in the center of the progress bar. Template variables: * value - the value * color - the matching color for the value This option expects the ID of the script element that contains the template.
public string CenterTemplateId { get; set; }
The template that will be displayed in the center of the progress bar. Template variables: * value - the value * color - the matching color for 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; }
A value indicating whether endloess loading is enabled
public bool? Indeterminate { get; set; }
The label that would be used as a aria-label for the Circular ProgressBar element. Will be applied only if ariaRole is set to true.
public string Label { get; set; }
The ID of the element that will be used as a label of the Circular ProgressBar. Will be used as a value of the aria-labelledby attribute. Will be applied only if ariaRole is set to true.
public string LabelId { get; set; }
A value indicating how wide will the pointer be
public double? PointerWidth { get; set; }
Configures the templates for the CircularProgressBar.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The circularProgressBar 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 circularProgressBar 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:
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: