We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Tooltip template render on condition.

Thread ID:

Created:

Updated:

Platform:

Replies:

148987 Nov 11,2019 07:00 AM UTC Nov 12,2019 12:25 PM UTC React - EJ 2 1
loading
Tags: Schedule
Sudhanshu Jain
Asked On November 11, 2019 07:00 AM UTC

We have tooltip template.We want to display tooltip for specific appointment. So if task type is not "travel" we don't want to show tooltip.Please find below method.

tooltipTemplate = (props: Object) => {
if(props.type !== 'travel') {
return null;
}
const endTime = getLodash(props, 'endTime');
const startTime = getLodash(props, 'startTime');
const end = moment(endTime);
const start = moment(startTime);
const duration = moment.duration(end.diff(start)).asHours();
return(
<div>Estimated Travel Time: {duration}hr</div>
);
}

So if type is not 'travel' ,a small tooltip is coming below appointment.Please find screenshot below .How can we remove below small tooltip that our condition
should match


Please find working fine tooltip component below .Here task type is "travel" so we are showing tooltip component.







Vinitha Devi Murugan [Syncfusion]
Replied On November 12, 2019 12:25 PM UTC

Hi Sudhanshu, 
 
Syncfusion Greetings. 
 
We achieved your requirement by making use of created event of the scheduler and same can be available in below link. 
 
 
 
Regards, 
M.Vinitha devi. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon