forked from DGNum/metis
Don't try to show a tooltip when no title is defined
This commit is contained in:
parent
3e84c21e00
commit
26cb575a54
1 changed files with 8 additions and 5 deletions
|
@ -129,11 +129,14 @@
|
||||||
progressiveEventRendering: true,
|
progressiveEventRendering: true,
|
||||||
expandRows: true,
|
expandRows: true,
|
||||||
eventDidMount: info => {
|
eventDidMount: info => {
|
||||||
|
const title = info.event.extendedProps.short_name;
|
||||||
|
if (title !== undefined) {
|
||||||
new Tooltip(info.el, {
|
new Tooltip(info.el, {
|
||||||
title: info.event.extendedProps.short_name,
|
title: title,
|
||||||
trigger: 'hover',
|
trigger: 'hover',
|
||||||
placement: 'top'
|
placement: 'top'
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
viewDidMount: arg => {
|
viewDidMount: arg => {
|
||||||
spinner = new Spinner({
|
spinner = new Spinner({
|
||||||
|
|
Loading…
Reference in a new issue