OTPInput
Kendo UI OTPInput component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class OTPInput : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseOTPInput
Implements:
Inherited Members
Constructors
Initializes a new instance of the OTPInput class.
public OTPInput(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
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; }
Sets the appearance of the keyboard for a devices with a virtual keyboard
public string InputMode { get; set; }
Sets the Otp Input's items configuration.
public List<OTPInputItem> Items { get; set; }
Sets the Otp Input's items configuration.
public int? ItemsLength { 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 ClientHandlerDescriptor 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
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: