react-schedule-selector icon indicating copy to clipboard operation
react-schedule-selector copied to clipboard

Blocked dates

Open leonardobork opened this issue 4 years ago • 5 comments

Add the option to block dates and times (like, if you aren't available at the selected time)

leonardobork avatar Mar 25 '20 22:03 leonardobork

Thanks for filing the issue! If I'm understanding correctly, are you suggesting that each cell should essentially have 3 states: unselected, selected positively, selected negatively (i.e. "blocked out" to specify not available)?

bibekg avatar Apr 07 '20 18:04 bibekg

Hi, This feature would be extremely useful. This project looks perfect for a requirement I have for self-scheduling but I need the ability to mark certain slots in the calendar as blocked off. @bibekg I was hoping that there was a mechanism to be able to set the state of a range of times as "selected negatively" so they would be greyed out and un-selectable.

Am I right that this is currently not supported?

ultimaustin avatar Oct 09 '20 14:10 ultimaustin

@ultimaustin yeah, that isn't supported right now. But it does sound like you and @leonardobork may be describing different features.

I think what @leonardobork is requesting is to be able to allow the user to negatively select a cell to indicate they are not available at that time.

It sounds like your request is to programmatically disable certain cells from being selected at all.

Am I understanding correctly?

bibekg avatar Oct 24 '20 18:10 bibekg

Yes, you are completely right.

I am requesting the ability to prevent the user from selecting certain cells. For any given day I know which cells are available to book and which have already been booked. I therefore need to be able to prevent the user from selecting the slots which have already been chosen by someone else.

ultimaustin avatar Oct 25 '20 10:10 ultimaustin

@ultimaustin Gotcha. That seems like a pretty useful feature, happy to add it in the next release. Would you mind filing a new issue describing it to reduce confusion with the other feature that I think is being described in this one?

bibekg avatar Oct 25 '20 14:10 bibekg