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 |
![]() |
Tags: Schedule |
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.
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.
This page will automatically be redirected to the sign-in page in 10 seconds.