visjs / vis-timeline

📅 Create a fully customizable, interactive timelines and 2d-graphs with items and ranges.
https://visjs.github.io/vis-timeline/
Other
1.88k stars 315 forks source link

Nested Groups don't work with typescript #587

Open zaquas77 opened 4 years ago

zaquas77 commented 4 years ago

Hi to all!

I want to include "vis-timeline" in my typescript project

When I try use "nestedGroups" the component "Timeline" break when I write this.timelineEl = new Timeline(appDiv, items, groups, {});

Meantime it work if I write this.timelineEl = new Timeline(appDiv, items.get(), groups.get(), {});

chrome/windows10

https://stackblitz.com/edit/typescript-ffrc1w?file=index.ts

Please look at raws 89 and 92

thanks in advance

Stefano

zanella commented 1 year ago

@zaquas77 I added an example on SO: https://stackoverflow.com/a/77308582/2946008

Can you check if it helps your case ?