I cloned a sample of React Gantt from react-gantt-demo [github] and made some adjust to toggle the
I default the config of
show_chart to be true, and upon first toggle, it is able to close the chart. But upon clicking again, it does not open up the chart as well.
The left side bar also look weird after the chart is closed, the
+ does not get pushed to the most right.
I have made a sample, and uploaded to github.
I have added new state
App.jsto maintain the state and pass down to
P.S: I came across a simple snippet here, and it is actually working using JS only.