Can I enable Baseline tooltip without taskbar tool tip?

I am prototyping a Gantt chart in an application. At the moment I have no need for a taskbar tooltip, but I do want to show a Baseline tooltip if the baseline is rendered. The documentation shows an example of enabling all tooltips (which is what I am doing for now).

Is there a way to enable the baseline tooltip only?

I found an old question talking about different tooltip controls that are available, but the baseline is not discussed there.

Any suggestions?

Cheers,
Richard

3 Replies 1 reply marked as answer

KR Karthikeyan Raja Syncfusion Team February 3, 2021 12:19 PM UTC

Hi Richard, 
 
We have analyzed your query. We don’t have option for enabling baseline tooltip alone. But we can prevent showing tooltip for taskbar using beforeTooltipRender event. Please find the code snippet below, 
var ganttChart = new ej.gantt.Gantt({ 
      beforeTooltipRender: function(args) { 
      if(args.args.target.classList.contains("e-gantt-child-taskbar") || args.args.target.classList.contains("e-gantt-parent-taskbar") || args.args.target.classList.contains("e-taskbar-left-resizer") || args.args.target.classList.contains("e-taskbar-right-resizer")) { 
           args.cancel = true; 
      } 
   } 
 
We have also prepared a sample for your reference. Please find the sample from below link, 
 
Please let us know, if you have any concerns. 
 
Regards, 
Karthikeyan Raja 


Marked as answer

RT Richard Tame February 6, 2021 09:07 AM UTC

Hi Karthikeyan,

Perfect. That code results in exactly what I wanted to do.

Thanks.

Cheers,
Richard


GM Gopinath Muniraj Syncfusion Team February 8, 2021 04:16 AM UTC

Hi Richard, 
Most welcome and thanks for the update. 
Please contact us if you have any further queries. 
Regards, 
Gopinath M 


Loader.
Up arrow icon