GanttBuilder<T>.Toolbar(Action<GanttToolbarBuilder>) Method

Mirrors the client-side toolbar object.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttBuilder<T> Toolbar(
    Action<GanttToolbarBuilder> configurator
)

Parameters

Name Type Description
configurator Action<GanttToolbarBuilder>

A function that allows you to specify nested options.

Returns

Type Description
GanttBuilder<T>

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