OTPInputTagHelper
Kendo UI OTPInput TagHelper OTPInputTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-otpinput")]
[HtmlTargetElement("otpinput-editor", TagStructure = TagStructure.NormalOrSelfClosing, ParentTag = "form-item")]
[RestrictChildren("otpinput-items", new string[] { })]
public class OTPInputTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, IKendoFormEditor
Inheritance: objectTagHelperTagHelperBaseOTPInputTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-otpinput name="otpinput">
<otpinput-items>
<item group-length="5" />
</otpinput-items>
</kendo-otpinput>
Child Tags
Constructors
Initializes a new instance of the OTPInputTagHelper class.
Properties
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; }
Sets the appearance of the keyboard for a devices with a virtual keyboard
public string InputMode { get; set; }
IsNested member.
[HtmlAttributeNotBound]
public bool IsNested { get; set; }
Implements:
Sets the OTPInput's items length.
[HtmlAttributeName("items")]
public int? ItemsLength { get; set; }
Fired when the value of the widget is changed by the user.The event handler function context (available through the keyword this) will be set to the widget instance.
public string OnChange { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the OTPInput 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 hint displayed by the widget when the inputs are empty. Not set by default.
public string Placeholder { get; set; }
If set to false, the user will be will unable to enter values within the inputs. The widget is non-readonly by default and allows user input.
public bool? Readonly { get; set; }
Adds a separator for each of the input groups.
public string Separator { get; set; }
Adds a separator for each of the input groups.
public string SeparatorHandler { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
If set to true, each of the input groups will not be concatenated with one another.
public bool? Space { get; set; }
Sets a value which will dictate the type of the component.
public OTPType? 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:
TryAddAsEditor method.
public bool TryAddAsEditor(TagHelperContext context)
The result.
Implements:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: