Open lilworks opened 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
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