BuilderFactoryExtensions.BootstrapTextBox(BuilderFactory, String) Method

Creates a Text Box control with a specified name.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll

Declaration

public static BootstrapTextBoxBuilder BootstrapTextBox(
    this BuilderFactory builderFactory,
    string name
)
<ExtensionAttribute>
Public Shared Function BootstrapTextBox(
    builderFactory As BuilderFactory,
    name As String
) As BootstrapTextBoxBuilder

Parameters

Type Name Description
BuilderFactory builderFactory

A BuilderFactory object providing access to Text Box settings.

String name

A control name.

Returns

Type Description
BootstrapTextBoxBuilder

A builder for a Text Box control.

The code sample below demonstrates how you can use this method to create a Text Box control.

Copy
@(Html.DevExpress()
    .BootstrapTextBox("textBoxDefault")
    .Value("Default Text")
)

See Also