Skip to content

TimeLine HTML Template working? #32

@plaetzchen79

Description

@plaetzchen79

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
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions