BuilderFactoryExtensions.BootstrapButtonEdit(BuilderFactory, String) Method

Creates a Button Edit control with the specified name.

Namespace: DevExpress.AspNetCore

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

Declaration

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

Parameters

Type Name Description
BuilderFactory builderFactory

A BuilderFactory object providing access to Button Edit settings.

String name

A control name.

Returns

Type Description
BootstrapButtonEditBuilder

A builder for a Button Edit control.

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

@(Html.DevExpress()
    .BootstrapButtonEdit("defaultButtonEdit")
    .Value("Sample Text")
    .ClientSideEvents(events => events
        .ButtonClick("function(s,e) { dxbsDemo.showToast('The button has been clicked.'); }"))
    .Buttons(buttons => buttons.Add())
)

See Also