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

Defines the fluent API for configuring the Kendo OTPInput for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the OTPInput class.

C#
public OTPInputBuilder(OTPInput component)
Parameters:componentOTPInput

The component.

Methods

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 OTPInputBuilder Enable(bool value)
Parameters:valuebool

The value that configures the enable.

Returns:

OTPInputBuilder

Configures the client-side events.

C#
public OTPInputBuilder Events(Action<OTPInputEventBuilder> configurator)
Parameters:configuratorAction<OTPInputEventBuilder>

The client events action.

Returns:

OTPInputBuilder

Example:
C#
@(Html.Kendo().OTPInput()
.Name("OTPInput")
.Events(events =&gt; events
.Change("onChange")
)
)

Sets a value controlling how the color is applied.

C#
public OTPInputBuilder FillMode(FillMode value)
Parameters:valueFillMode

The value that configures the fillmode.

Returns:

OTPInputBuilder

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

C#
public OTPInputBuilder InputMode(string value)
Parameters:valuestring

The value that configures the inputmode.

Returns:

OTPInputBuilder

Sets the Otp Input's items configuration.

C#
public OTPInputBuilder Items(Action<OTPInputItemFactory> configurator)
Parameters:configuratorAction<OTPInputItemFactory>

The action that configures the items.

Returns:

OTPInputBuilder

C#
public OTPInputBuilder Items(int length)
Parameters:lengthintReturns:

OTPInputBuilder

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

C#
public OTPInputBuilder Placeholder(string value)
Parameters:valuestring

The value that configures the placeholder.

Returns:

OTPInputBuilder

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 OTPInputBuilder Readonly(bool value)
Parameters:valuebool

The value that configures the readonly.

Returns:

OTPInputBuilder

Sets a value controlling the border radius.

C#
public OTPInputBuilder Rounded(Rounded? value)
Parameters:valueRounded?

The value that configures the rounded.

Returns:

OTPInputBuilder

Adds a separator for each of the input groups.

C#
public OTPInputBuilder Separator(string value)
Parameters:valuestring

The value that configures the separator.

Returns:

OTPInputBuilder

Adds a separator for each of the input groups.

C#
public OTPInputBuilder SeparatorHandler(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

OTPInputBuilder

Adds a separator for each of the input groups.

C#
public OTPInputBuilder SeparatorHandler(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

OTPInputBuilder

Sets the size of the component.

C#
public OTPInputBuilder Size(ComponentSize? value)
Parameters:valueComponentSize?

The value that configures the size.

Returns:

OTPInputBuilder

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

C#
public OTPInputBuilder Space(bool value)
Parameters:valuebool

The value that configures the space.

Returns:

OTPInputBuilder

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

C#
public OTPInputBuilder Type(OTPType value)
Parameters:valueOTPType

The value that configures the type.

Returns:

OTPInputBuilder

The value of the widget.

C#
public OTPInputBuilder Value(string value)
Parameters:valuestring

The value that configures the value.

Returns:

OTPInputBuilder