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.
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. Figure 1: Week view with tooltip option.
Figure 2: Workweek view without tooltip option.
Please refer the example from the following GitHub link.
Example – Tooltip based on views.