Skip to main content

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

public TextBoxBuilder Mode(
    TextBoxMode value
)

Parameters

Name Type Description
value TextBoxMode

The option value.

Returns

Type Description
TextBoxBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().TextBox()
    .Mode(TextBoxMode.Email)
)
See Also