Lighthouse-io / react-visjs-timeline

React component for the vis.js timeline module
MIT License
210 stars 91 forks source link

get the timeline #93

Open lilworks opened 5 years ago

lilworks commented 5 years ago

I use ReactDOM.render to render the timeline.

ReactDOM.render(<Timeline options={options} items={items} groups={groups} clickHandler={clickHandler} rangechangeHandler={rangeChangeHandler} />, document.getElementById('timeline'));

But I don't understand how to reach the timeline in my js code. I tried Timeline.getVisibleItems() but it throw me a not a function error