BuilderFactoryExtensions.BootstrapDateEdit(BuilderFactory, String) Method

Creates a Date Edit control with a specified name.

Namespace: DevExpress.AspNetCore

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

Declaration

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

Parameters

Type Name Description
BuilderFactory builderFactory

A BuilderFactory object providing access to Date Edit settings.

String name

A control name.

Returns

Type Description
BootstrapDateEditBuilder

A builder for a Date Edit control.

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

@(Html.DevExpress()
    .BootstrapDateEdit("dateEditDefault")
    .Value("01/01/2017")
)