Skip to main content

BuilderFactoryExtensions.BootstrapToolbar(BuilderFactory) Method

Creates a Toolbar interface.

Namespace: DevExpress.AspNetCore

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

Declaration

public static BootstrapToolbarBuilder BootstrapToolbar(
    this BuilderFactory builderFactory
)

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Toolbar settings.

Returns

Type Description
BootstrapToolbarBuilder

A builder for a Toolbar interface.

Remarks

IMPORTANT

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

The code sample below demonstrates how you can use this method to create a Toolbar interface.

@(Html.DevExpress()
    .BootstrapToolbar()
    .Items(items => {
        items.Add().Name("Copy").IconCssClass("fa fa-copy");
        items.Add().Name("Paste").IconCssClass("fa fa-paste");
        items.Add().Name("Item1").Text("Item");
        items.Add().Name("Link").NavigateUrl("#DefaultToolbar").Text("Link");
        items.Add().Name("Left").BeginGroup(true).IconCssClass("fa fa-align-left");
        items.Add().Name("Center").IconCssClass("fa fa-align-center");
        items.Add().Name("Right").IconCssClass("fa fa-align-right");
    }))
See Also