Skip to main content

BarItemCollection.AddCustomButton(String, Func<Task>) Method

Adds a custom button to the end of the bar item collection.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public IBarButton AddCustomButton(
    string text,
    Func<Task> click
)

Parameters

Name Type Description
text String

The button text.

click Func<Task>

A delegate method that handles the button’s Click event.

Returns

Type Description
IBarButton

The inserted bar button.

Remarks

Refer to the IBarButton interface description for more information and an example.

See Also