<kendo:gantt-toolbarItem>

If 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").The "append" command adds a new task to the gantt.The "pdf" command exports the gantt in PDF format.

Example

<kendo:gantt-toolbar>
    <kendo:gantt-toolbarItem></kendo:gantt-toolbarItem>
</kendo:gantt-toolbar>

Configuration Attributes

name java.lang.String

The 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.

Example

<kendo:gantt-toolbarItem name="name">
</kendo:gantt-toolbarItem>

template java.lang.String

The template which renders the command. By default renders a button.

Example

<kendo:gantt-toolbarItem template="template">
</kendo:gantt-toolbarItem>

text java.lang.String

The text displayed by the command button. If not set the name` option would be used as the button text instead.

Example

<kendo:gantt-toolbarItem text="text">
</kendo:gantt-toolbarItem>

Event Attributes

template String

The template which renders the command. By default renders a button.

Example

<kendo:gantt-toolbarItem template="handle_template">
</kendo:gantt-toolbarItem>
<script>
    function handle_template(e) {
        // Code to handle the template event.
    }
</script>

Event Tags

kendo:gantt-toolbarItem-template

The template which renders the command. By default renders a button.

Example

<kendo:gantt-toolbarItem>
    <kendo:gantt-toolbarItem-template>
        <script>
            function(e) {
                // Code to handle the template event.
            }
        </script>
    </kendo:gantt-toolbarItem-template>
</kendo:gantt-toolbarItem>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy