StephenChou1017 / react-big-scheduler

A scheduler and resource planning component built for React and made for modern browsers (IE10+)
https://stephenchou1017.github.io/scheduler/#/
MIT License
754 stars 414 forks source link

Feature Request: Hide weekends with config option #21

Open Subwater opened 6 years ago

Subwater commented 6 years ago

In my project that uses react-big-scheduler I have a need to turn weekends off because they are never used, so as to not show unused days I went in a filtered them out before render. The one issue with that is they (days) still live on in the state, because they were filtered just before rendering

This would be an awesome feature for businesses -- with no need to see unused days -- wanting to use your project!

Great work on the project, it has been very useful! 👍

EDIT: Do you want me to open another FR for toggling collapse in the config?

StephenChou1017 commented 6 years ago

@Subwater Hi, I've added a Scheduler.config.displayWeekend to achieve this, see this example :-)

Subwater commented 6 years ago

This is awesome news!! :) When can we expect the changes to be published to NPM?

StephenChou1017 commented 6 years ago

Maybe when we add some more features, we can checkout the code at first:-)

StephenChou1017 commented 6 years ago

@Subwater I've published a new version 0.2.2 in npm.