GanttBuilder<T>.Toolbar(Action<GanttToolbarBuilder>) Method
In This Article
Configures toolbar settings. Mirrors the client-side toolbar object.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public GanttBuilder<T> Toolbar(
Action<GanttToolbarBuilder> configurator
)
#Parameters
Name | Type | Description |
---|---|---|
configurator | Action<Gantt |
A function that allows you to specify nested options. |
#Returns
Type | Description |
---|---|
Gantt |
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