Toolbar
configuration- If a
Stringvalue is assigned to thetoolbarconfiguration option, it will be treated as a single string template for the whole PropertyGrid 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 PropertyGrid toolbar. - If an
Arrayvalue is assigned, it will be treated as the list of commands which are displayed in the PropertyGrid toolbar. Commands can be custom or built-in. The supported built-in commands are:search—Adds a Search input to the ToolBar of the PropertyGrid. Search is performed by property name.sort—Adds a DropDownList with sorting options. Properties are sorted by property name.group—Renders a button for toggling between List and Group layout.details—Renders a button for toggling the Details/Info box.separator—Renders a separator element.spacer—Renders a spacer element.excel—Exports the data in MS Excel format.pdf—Exports the data in PDF format.
- 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 PropertyGrid 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 PropertyGrid 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 ("search", "sort", "group" or "details") 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.text
StringThe text that is displayed by the command button. If not set, the PropertyGrid will use the name option as the button text instead.