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

[feature] prop to set marked days #136

Open
mriot opened this issue Oct 27, 2021 · 4 comments
Open

[feature] prop to set marked days #136

mriot opened this issue Oct 27, 2021 · 4 comments

Comments

@mriot
Copy link

mriot commented Oct 27, 2021

The one thing I am currently missing from this awesome calendar is an option, to set marked/highlighted days.
Let's say a prop called marked which I can pass an array of dates, that would be given a certain class name.

Maybe there is already a way to accomplish this, and I just can't see it.

@rotimi-best
Copy link

Exactly what I need, I just created an issue related to this.

@rotimi-best
Copy link

I found a way around it, it really isn't scalable cause any change in the classes can break this code. but for the main time, this is good enough for me

#137 (comment)

@6eDesign
Copy link
Owner

This is an interesting idea and is likely something I can support in one fashion or another. It would also be good to be able to disable the selection of some dates. Both could probably be supported by some sort of function that is supplied to the calendar as a prop.

@rotimi-best
Copy link

@6eDesign disabling functionality is also a good idea, it makes sense that you would want to disable some dates.

Here is a demo of my hacky workaround

Screen.Recording.2021-11-18.at.16.10.54.mov

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

3 participants