tooltip Object

The task tooltip configuration options.

Example - configure the task tooltip

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  tooltip: {
    visible: true
  },
  dataSource: [
    {
      id: 1,
      orderId: 0,
      parentId: null,
      title: "Task1",
      start: new Date("2014/6/17 9:00"),
      end: new Date("2014/6/17 11:00")
    }
  ]
});
</script>

tooltip.template String|Function

The template which renders the tooltip.

The fields which can be used in the template are:

  • task - the gantt task, for which the template is shown

Example - set the task tooltip template

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  tooltip: {
    visible: true,
    template: "Title: #= task.title #"
  },
  dataSource: [
    {
      id: 1,
      orderId: 0,
      parentId: null,
      title: "Task1",
      start: new Date("2014/6/17 9:00"),
      end: new Date("2014/6/17 11:00")
    }
  ]
});
</script>

tooltip.visible Boolean (default: true)

If set to false the gantt will not display the task tooltip. By default the task tooltip is displayed.

Example - disable the task tooltip

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  tooltip: {
    visible: false
  },
  dataSource: [
    {
      id: 1,
      orderId: 0,
      parentId: null,
      title: "Task1",
      start: new Date("2014/6/17 9:00"),
      end: new Date("2014/6/17 11:00")
    }
  ]
});
</script>
In this article