Re: [VUE 3] Tooltips not working (Scheduler within Calendar)
Posted: Wed Mar 22, 2023 6:25 pm
by Animal
It looks like a bug. It's looking like the Calendar overrides the eventTooltip property in the configuration of its captive Scheduler. I will check into it.
Re: [VUE 3] Tooltips not working (Scheduler within Calendar)
Posted: Wed Mar 22, 2023 6:30 pm
by Animal
OK, no, the Calendar's eventTooltip is supposed to handle that, so in theory, configure it on the Calendar.
Re: [VUE 3] Tooltips not working (Scheduler within Calendar)
Posted: Wed Mar 22, 2023 6:40 pm
by Animal
So on the Calendar:
eventTooltip : {
// Tooltip configs can be used here
align: 'l-r', // Align left to right,
// Custom content
renderer : data => 'I am a tooltip!'
}
Re: [VUE 3] Tooltips not working (Scheduler within Calendar)
Posted: Wed Mar 22, 2023 9:11 pm
by jnarowski
This seemed to do the trick. I think I might have been overriding the defaults at some level in the config tree. Appreciate the help!
Re: [VUE 3] Tooltips not working (Scheduler within Calendar)
Posted: Wed Mar 22, 2023 9:13 pm
by jnarowski
Different but related question: How would I customize the entire tooltip if I wanted to? IE replace the header etc with all of my own HTML. It appears renderer only replaces the body but the header is unaffected.
Re: [VUE 3] Tooltips not working (Scheduler within Calendar)
Posted: Wed Mar 22, 2023 9:39 pm
by jnarowski
That does seem like exactly what I am looking for. It didn't appear to work as expected though:
features: {
eventTooltip: {
// Tooltip configs can be used here
align: 'l-r', // Align left to right,
// Custom content
template: (data) => `<dl>Template</dl>`,
// renderer: (data) => 'I am a tooltip!',
},
},
Renderer does work.
After adding template and commenting out renderer, when I click the tooltip in calendar or scheduler view, it now looks like this: https://jmp.sh/diJwdKew