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

Defines the fluent API for configuring the Kendo UI OTPInput

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class OTPInputBuilder : WidgetBuilderBase<OTPInput, OTPInputBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<OTPInput, OTPInputBuilder>OTPInputBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<OTPInput, OTPInputBuilder>.ToComponent()WidgetBuilderBase<OTPInput, OTPInputBuilder>.Expression(string)WidgetBuilderBase<OTPInput, OTPInputBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<OTPInput, OTPInputBuilder>.Name(string)WidgetBuilderBase<OTPInput, OTPInputBuilder>.Deferred(bool)WidgetBuilderBase<OTPInput, OTPInputBuilder>.HtmlAttributes(object)WidgetBuilderBase<OTPInput, OTPInputBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<OTPInput, OTPInputBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<OTPInput, OTPInputBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<OTPInput, OTPInputBuilder>.Render()WidgetBuilderBase<OTPInput, OTPInputBuilder>.ToHtmlString()WidgetBuilderBase<OTPInput, OTPInputBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<OTPInput, OTPInputBuilder>.ToClientTemplate()WidgetBuilderBase<OTPInput, OTPInputBuilder>.AsModule(bool)WidgetBuilderBase<OTPInput, OTPInputBuilder>.ComponentWidgetBuilderBase<OTPInput, OTPInputBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the OTPInputBuilder class.

C#
public OTPInputBuilder(OTPInput component)
Parameters:componentOTPInput

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 for 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 for 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 for InputMode

Returns:

OTPInputBuilder

Sets the Otp Input's items configuration.

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

The configurator for the items setting.

Returns:

OTPInputBuilder

Sets the number of items in the OTPInput.

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

The number of items

Returns:

OTPInputBuilder

Returns the current OTPInputBuilder instance.

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 for 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()
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 for Readonly

Returns:

OTPInputBuilder

Sets a value controlling the border radius.

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

The value for Rounded

Returns:

OTPInputBuilder

Adds a separator for each of the input groups.

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

The value for 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 for Size

Returns:

OTPInputBuilder

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

C#
public OTPInputBuilder Space()
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 for Space

Returns:

OTPInputBuilder

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

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

The value for Type

Returns:

OTPInputBuilder

The value of the widget.

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

The value for Value

Returns:

OTPInputBuilder