Articles in this section
Category / Section

How to enable the tooltip option based on the views?

1 min read

This knowledge base article explains the way to enable the tooltip option based on the views.

 

Step 1: Create a JS Scheduler with tooltip option by referring the following user guide link.

https://ej2.syncfusion.com/javascript/documentation/schedule/appointments/?no-cache=1#display-tooltip-for-appointments

Step 2: Bind actionComplete event to enable/disable the tooltip option based on the selected views as shown in the following code example.

actionComplete: function (args) {
      if (this.currentView === "Week" || this.currentView === "Month")
          this.eventSettings.enableTooltip = true;
      else
         this.eventSettings.enableTooltip = false;
}

Step 3: Run the sample and tooltip will be displayed only for Week and Month views as shown below. o/p img Figure 1: Week view with tooltip option.

o/p img2

 Figure 2: Workweek view without tooltip option.

Please refer the example from the following GitHub link.

Example – Tooltip based on views.

 

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied