Toolbar
configurationIf a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole Gantt Toolbar,
and the string value will be passed as an argument to a kendo.template() function.
If a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the Gantt Toolbar contents.
If an Array value is assigned, it will be treated as the list of commands displayed in the Gantt Toolbar. Commands can be custom or built-in ("append", "pdf", "plannedTasks").
The "append" command adds a new task to the gantt.
The "pdf" command exports the gantt in PDF format.
The "plannedTasks" command will render the plannedTasks Switch on the Toolbar. That Switch allows the user to turn on and off the Planned vs. Actual view in the Timeline of the Gantt. When turned on, that view will render both the planned and the actual duration of all tasks. When enabled, plannedStart and plannedEnd date fields of tasks are required to properly render planned duration.
toolbar
String|Function|Arraytoolbar.name
StringThe name of the toolbar command. Either a built-in ("append" and "pdf") or custom. The name is reflected in one of the CSS classes, which is applied to the button - k-gantt-name.
This class can be used to obtain reference to the button after Gantt initialization and attach click handlers.
toolbar.template
String|FunctionThe template which renders the command. By default renders a button.
toolbar.text
StringThe text displayed by the command button. If not set the name` option would be used as the button text instead.