Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to add multiple "selection" levels? #66

Open
apropp opened this issue Feb 26, 2023 · 1 comment
Open

Possible to add multiple "selection" levels? #66

apropp opened this issue Feb 26, 2023 · 1 comment

Comments

@apropp
Copy link

apropp commented Feb 26, 2023

Hi there! If we want to allow users to make multiple types of selections (e.g. "preferred" times and "available" times, designated by different colors) on the calendar, how would you suggest doing that? Thanks!

@bibekg
Copy link
Owner

bibekg commented Feb 26, 2023

The ScheduleSelector component itself doesn't support any notion of "preferred" vs. "available" but you can use the renderDateCell to customize exactly how you want to render each cell based on your own data/conditions. Here's an example for your use case: https://codesandbox.io/s/react-schedule-selector-available-vs-preferred-example-jpnzkc?file=/index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants