Toolbar
configuration- If a
Stringvalue is assigned to thetoolbarconfiguration option, it will be treated as a single string template for the whole TreeList toolbar and the string value will be passed as an argument to akendo.template()function. - If a
Functionvalue is assigned (it may be akendo.template()function call or a generic function reference), then the return value of the function will be used to render the contents of the TreeList toolbar. - If an
Arrayvalue is assigned, it will be treated as the list of commands which are displayed in the TreeList toolbar. Commands can be custom or built-in. The supported built-in commands are:create- Adds an empty data item to the treelist.excel- Exports the TreeList data in MS Excel format.pdf- Exports the TreeList data in PDF format.search- built-in search panel for the TreeList.
- If an
Objectvalue is assigned, it will propagate these properties to the underlying Toolbar:items- an array of commands as explained aboveoverflow- an object that configures the overflow behavior of the toolbar. The same asToolbar.overflowproperty
toolbar
String|Function|Array|Objecttoolbar.click
FunctionThe click handler of the toolbar command. Used for custom toolbar commands.
toolbar.icon
StringSpecifies the icon's name that will be rendered inside the toolbar button. When you set this option, the TreeList renders an additional span element inside the toolbar button which has a name set to the option value. This approach allows you to display an icon inside your custom toolbar commands.
toolbar.imageClass
StringA class name that will be rendered inside the toolbar button. When you set this option, the TreeList renders an additional span element inside the toolbar button which has a class name set to the option value. This approach allows you to display an icon inside your custom toolbar commands.
toolbar.items
ArrayA JavaScript array that contains the ToolBar's commands configuration.
toolbar.name
StringThe name of the toolbar command. Can be either a built-in ("create", "excel", or "pdf") or a custom string. The name is output in the HTML as a value of the data-command attribute of the button.
toolbar.overflow
ObjectSpecifies Toolbar.overflow configuration for the toolbar.
toolbar.template
String|FunctionThe template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template
toolbar.text
StringThe text that is displayed by the command button. If not set, the TreeList will use the name` option as the button text instead.