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

Decorations for some disabled dates #62

Open
zs-dima opened this issue May 28, 2021 · 5 comments
Open

Decorations for some disabled dates #62

zs-dima opened this issue May 28, 2021 · 5 comments

Comments

@zs-dima
Copy link

zs-dima commented May 28, 2021

It could be nice to be able to add decorations for some disabled dates.
For example for booking we want to display weekend and holidays in red color but dates before firstDate and after lastDate in grey.

@albertoazinar
Copy link

Can u assign it to me?
I wanna try

@MariaMelnik
Copy link
Owner

@AlbertoYabeda yes, you can suggest any decision. It would be great if you describe here what changes you would like to do before start coding. If you prefer make pr you can try as well.

@albertoazinar
Copy link

I was looking at one of the source code.
So, I noticed there are an array and a variable responsible to control de week days.
I was thinking, to solve this issue, using the variable weekday to see if the weekday is equal to six or seven, then paint to red. for the user to know its a weekend.
about the days before and after the selected days, I was thinking about working with an array to paint the dates amongst the selected days (not that sure).

thanks for your time.

@MariaMelnik
Copy link
Owner

@AlbertoYabeda sorry for delay. I believe this should be more generic solution. Maybe user would like to set special decoration not only for weekdays. For example some government services may have not working day at Wednesday. Thank you for your impact anyway!

@beheobong
Copy link

#102 . I add new styles for weekend. You can check it

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

4 participants