GanttToolbarBuilder.Items(Action<CollectionFactory<GanttToolbarItemBuilder>>) Method
In This Article
Configures toolbar items' settings. Mirrors the client-side items option.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public GanttToolbarBuilder Items(
Action<CollectionFactory<GanttToolbarItemBuilder>> configurator
)
#Parameters
Name | Type | Description |
---|---|---|
configurator | Action<Collection |
A function that configures toolbar 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