Back to Devexpress

TextBoxBuilder.Mode(TextBoxMode) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-textboxbuilder-dot-mode-x28-devextreme-dot-aspnet-dot-mvc-dot-textboxmode-x29.md

latest1.3 KB
Original Source

TextBoxBuilder.Mode(TextBoxMode) Method

The 'mode' attribute value of the actual HTML input element representing the text box. Mirrors the client-side mode option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TextBoxBuilder Mode(
    TextBoxMode value
)

Parameters

NameTypeDescription
valueTextBoxMode

The option value.

|

Returns

TypeDescription
TextBoxBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().TextBox()
    .Mode(TextBoxMode.Email)
)

See Also

TextBoxBuilder Class

TextBoxBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace