BuilderFactoryExtensions.BootstrapButton(BuilderFactory) Method

Creates a Button control.

Namespace: DevExpress.AspNetCore

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

Syntax

public static BootstrapButtonBuilder BootstrapButton(this BuilderFactory builderFactory)

Parameters

Type Name Description
BuilderFactory builderFactory

A BuilderFactory object providing access to Button settings.

Returns

Type Description
BootstrapButtonBuilder

A builder for a Button control.

The code sample below demonstrates how you can use this method to create an Button control.

Copy
@(Html.DevExpress()
    .BootstrapButton()
    .Text("Button")
    .ClientSideEvents(events => events
        .Click("onButtonClick")
    ))