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

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 data source 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