Skip to main content

GanttToolbarBuilder.Items(Action<CollectionFactory<GanttToolbarItemBuilder>>) Method

Configures toolbar items' settings. Mirrors the client-side items option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttToolbarBuilder Items(
    Action<CollectionFactory<GanttToolbarItemBuilder>> configurator
)

Parameters

Name Type Description
configurator Action<CollectionFactory<GanttToolbarItemBuilder>>

A function that configures toolbar options.

Returns

Type Description
GanttToolbarBuilder

A reference to this instance after the method is called.

Remarks

@(Html.DevExtreme().Gantt()
    .Toolbar(toolbar => {
        toolbar.Items(items => {
            items.Add().Name(GanttToolbarItem.Undo);
            //...
        }
    }
    //...
)
See Also