-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
I am trying to use the template option to make a timeline-item render with html Tags.
(like shown in the soccer cup overview)
I am getting no errors, but the timeline ignores the "template" attribute and the function
(the other attributes are working).
What am i doing wrong?
Thank you
this.visOptions = {showCurrentTime: true, showMajorLabels: true, showMinorLabels: true,
template:() => (function (item, element, data) {
return "<p>"+ item.data.Name + "</p><p style='font-size:x-small;'>" + item.data.Betreff + "</p> <hr><p style='font-size:x-small;'><img src='/img/user.png'/>" + item.data.Bearbeiter.length + " </p>" ;
})
};
this.visTimelineService.setOptions(this.visTimeline,this.visOptions);
Metadata
Metadata
Assignees
Labels
No labels