New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Kendo UI OTPInput component

Definition

Constructors

Initializes a new instance of the OTPInput class.

C#
public OTPInput(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The 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.

C#
public bool? Enable { get; set; }

Sets a value controlling how the color is applied.

C#
public FillMode? FillMode { get; set; }

Sets the appearance of the keyboard for a devices with a virtual keyboard

C#
public string InputMode { get; set; }

Sets the Otp Input's items configuration.

C#
public List<OTPInputItem> Items { get; set; }

Sets the Otp Input's items configuration.

C#
public int? ItemsLength { get; set; }

The hint displayed by the widget when the inputs are empty. Not set by default.

C#
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.

C#
public bool? Readonly { get; set; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

Adds a separator for each of the input groups.

C#
public string Separator { get; set; }

Adds a separator for each of the input groups.

C#
public ClientHandlerDescriptor SeparatorHandler { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

If set to true, each of the input groups will not be concatenated with one another.

C#
public bool? Space { get; set; }

Sets a value which will dictate the type of the component.

C#
public OTPType? Type { get; set; }

The value of the widget.

C#
public string Value { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)