Skip to main content

ToolbarItemFactory Class

Provides methods that allow you to configure a control that represents a toolbar item.

Namespace: DevExtreme.AspNet.Mvc.Factories

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public class ToolbarItemFactory :
    AbstractWidgetFactory

Remarks

Do not instantiate this class explicitly. A new ToolbarItemFactory class instance is created when you call one of the following methods:

  • FileManagerToolbarItemBuilder.Widget
  • GanttToolbarItemBuilder.Widget
  • HtmlEditorToolbarItemBuilder.Widget
  • PopoverToolbarItemBuilder.Widget
  • PopupToolbarItemBuilder.Widget
  • ToolbarItemBuilder.Widget
@Html.DevExtreme().Toolbar()
    .Items(items => {
        items.Add()
            .Widget(w => w.Button()
                // call methods in a chain to customize the control
            );
    })
)

Inheritance

Object
AbstractWidgetFactory
ToolbarItemFactory
See Also