Demo should not obfuscate js functions
Closed this issue · 1 comments
ThomasPCG commented
Without any formal documentation, we are relying on the demo to understand how some of the functions work (e.g. changing the view mode). However, the library and functions are obfuscated in bundle.js, adding additional complexity to understand how this library work. It would be good to unobfuscate the library so that more people can understand how this library works.
Anyway, for those looking to change the view mode, it will be:
- Setting the object.options.viewMode to 'day' / 'week' / 'month'
- Invoke object.render();
where object is the variable assigned when initializing the gantt chart.
Thank you.
helloyou2012 commented
@ThomasPCG thanks for your advice. We have updated the documentation: https://github.com/d-band/gantt#api