BarItemCollection.AddCustomButton(Int32, String, Func<Task>) Method
Adds a custom button to the specified position in the bar item collection.
Namespace: DevExpress.Blazor.Office
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public IBarButton AddCustomButton(
int index,
string text,
Func<Task> click
)
Parameters
Name | Type | Description |
---|---|---|
index | Int32 | The position where to insert the button. |
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