Open
Description
I'm just starting to use your (awesome 👋 ) project. I'd like to show some complex items (with images) in timeline, and since I already have some Vue components to handle this, I used your example to try it.
However, I noticed some limitations:
- Reactivity is non-existent. Moreover, the template function is called on every select and unselect event, and it build a new component every time. I kind of solved it by caching instances of component items, but it doesn't solve the fact that changes in component state are not reflected
- Only HTML and CSS from the initial state. The rest is ignored, and it includes events. For example, I used some router links, and they are not handled by JS event, but trigger a page reload, which is… undesired 😉
I don't know if those limitations can be lifted. The template
method from visjs-timeline seems out of control. Maybe there is something to do to hook on Vue component and call redraw
when needed?
And for JS and events, I don't even think this is possible, so maybe it could be good to write it somewhere in the documentation.