ProgressBarTagHelper
Kendo UI ProgressBar TagHelper ProgressBarTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-progressbar")]
[OutputElementHint("div")]
public class ProgressBarTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseProgressBarTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-progressbar name="progressbar" animation="true"></kendo-progressbar>
Constructors
Initializes a new instance of the ProgressBarTagHelper class.
public ProgressBarTagHelper(IKendoHtmlGenerator generator)
Properties
The duration of each progress animation in milliseconds.
public double? AnimationDuration { get; set; }
If set to true the ProgressBar will have its role attribute set to progressbar. It will also render its aria-valuemin, aria-valuemax, and aria-valuenow attributes.
[HtmlAttributeName("progressbar-aria-role")]
public string AriaRole { get; set; }
Specifies the number of chunks.
public double? ChunkCount { get; set; }
If set to false the widget will be disabled. It will still allow changing the value. The widget is enabled by default.
public bool? Enable { get; set; }
The label that would be used as a aria-label for the 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 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; }
The name of the JavaScript function that will handle the change event. Fired when the value of the ProgressBar has changed. If the progress animation is enabled, the event will be fired after the animation has completed (does not applies to chunk ProgressBar).
public string OnChange { get; set; }
The name of the JavaScript function that will handle the complete event. Fired when the value of the ProgressBar reaches the maximum value.
public string OnComplete { get; set; }
Defines the orientation of the ProgressBar.
public ProgressBarOrientation? Orientation { get; set; }
Specifies if the progress direction will be reversed.
public bool? Reverse { get; set; }
Specifies if the progress status will be shown.
public bool? ShowStatus { get; set; }
Represents the supported progress types
public ProgressBarType? Type { 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: