How to enable/disable the tooltip based on event field in JavaScript Schedule?
This knowledge base article explains the way to enable or disable the tooltip based on event field.
Step 1: Create a JS Scheduler with tooltip option by referring the following user guide link.
Step 2: Include custom field Enable in event collection as shown in the following code example.
{ Id: 1, Subject: "Server Maintenance", StartTime: new Date(2018, 1, 11, 10, 0), EndTime: new Date(2018, 1, 11, 11, 30), Enable: true }, { Id: 2, Subject: "Art & Painting Gallery", StartTime: new Date(2018, 1, 12, 12, 0), EndTime: new Date(2018, 1, 12, 14, 0), Enable: false }
Step 3: Bind hover event to enable or disable the tooltip based on event field Enable as shown in the following code example.
The hover event support is provided only from v17.3.9-beta.
Step 4: Run the sample and tooltip will displayed only hovering the Server Maintenance event as shown below.
Figure 1: Displaying tooltip based on event field.
Please refer the example from the following GitHub link.
Example – Displaying tooltip based on event field
Conclusion
I hope you enjoyed learning about how to enable/disable the tooltip based on event field
You can refer to our JavaScript Schedule feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our JavaScript Schedule example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!