Kendo UI TimeDurationPicker TagHelper TimeDurationPickerTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-timedurationpicker")]
[HtmlTargetElement("timedurationpicker-editor", ParentTag = "form-item")]
[HtmlTargetElement("timedurationpicker-editor", ParentTag = "property-grid-item")]
[RestrictChildren("timedurationpicker-columns", new string[] { "messages", "shortcuts" })]
public class TimeDurationPickerTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, IKendoFormEditor
Inheritance: objectTagHelperTagHelperBaseTimeDurationPickerTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-timedurationpicker name="timedurationpicker" adaptive-mode="AdaptiveMode.Auto">
<timedurationpicker-columns>
<timedurationpicker-column name="minutes" />
</timedurationpicker-columns>
</kendo-timedurationpicker>
Child Tags
Constructors
Initializes a new instance of the TimeDurationPickerTagHelper class.
public TimeDurationPickerTagHelper(IKendoHtmlGenerator generator)
Properties
Specifies the adaptive rendering of the component.
public AdaptiveMode? AdaptiveMode { get; set; }
Allows customization of the subtitle's text in the adaptive view of the component.
public string AdaptiveSubtitle { get; set; }
Allows customization of the title's text in the adaptive view of the component.
public string AdaptiveTitle { get; set; }
If set to false, the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.
public bool? Enable { get; set; }
Sets a value controlling how the color is applied.
public FillMode? FillMode { get; set; }
An expression to be evaluated against the current model.
public ModelExpression For { get; set; }
Specifies the inputmode attribute of the inner <input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.
public string InputMode { get; set; }
IsNested member.
[HtmlAttributeNotBound]
public bool IsNested { get; set; }
Implements:
The name of the JavaScript function that will handle the change event. Fired when the value of the widget is changed by the user.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnChange { get; set; }
The name of the JavaScript function that will handle the close event. Fires when the popup is closed
public string OnClose { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the TimeDurationPicker is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the open event. Fires when the time drop-down list is opened
public string OnOpen { get; set; }
If set to true, the widget will be readonly and will not allow user input. The widget is not readonly by default and allows user input.
public bool? Readonly { get; set; }
Sets a string value that is used to devide the different column values inside the input. The value must be a single character, you cannot use more than one character as a separator.
public string Separator { get; set; }
Sets a value controlling the size of the component.
public ComponentSize? Size { 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:
TryAddAsEditor method.
public bool TryAddAsEditor(TagHelperContext context)
The result.
Implements:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: