I'm trying to figure it out how to get the event the tooltip is shown on so I can decide if the delete button is shown.
Here's what I have now which obviously doesn't work:
features: {
eventTooltip : {
showOn : 'click',
renderer: data => `
custom html to show in the tooltip
`,
tooltip : {
tools : {
delete: this.eventRecord.status == 'published' ? false : true
},
},
},
thank you for your help
Re: disable Delete on events conditionally
Posted: Thu Apr 28, 2022 9:50 am
by tasnim
To achieve that you can use the beforeShow event.
Here is an example: