You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, all things depending on the time scale are big if/else trees, for each available time scale. This can make it tedious to add or modify view modes.
It would be nice to have a configuration object to get these settings from, so people can more easily add other time scales without the need to alter/search through the code.
The new option could look something like this:
vargantt=newGantt(div,tasks,{// ...view_modes: [{name: 'Hour',step: 3600,// in unix secondssnap_interval: 300,// snap task dates to 5 minute intervalsupper_text: {x: 10,// offset from the 'base position'period: 3600*24,// repeat the upper text for each daytext: 'DD',// using date_utils or in some date formatcolumn_width: 38// using date_utils or in some date format},lower_text: {/* similar to upper_text */}},// ... more view modes]}}
The text was updated successfully, but these errors were encountered:
Currently, all things depending on the time scale are big if/else trees, for each available time scale. This can make it tedious to add or modify view modes.
It would be nice to have a configuration object to get these settings from, so people can more easily add other time scales without the need to alter/search through the code.
The new option could look something like this:
The text was updated successfully, but these errors were encountered: