MudBlazor / MudBlazor

Blazor Component Library based on Material design with an emphasis on ease of use. Mainly written in C# with Javascript kept to a bare minimum it empowers .NET developers to easily debug it if needed.
http://mudblazor.com
MIT License
7.98k stars 1.27k forks source link

Date Picker Holidays Color #1796

Closed bahar-1396 closed 6 months ago

bahar-1396 commented 3 years ago

hi days weekend(Saturday or Sunday and Friday for jalali date ) or year holidays to red color , is a feature that makes the component more beautiful and better

henon commented 3 years ago

I agree, we need a solution for that, maybe a func like the one that has just been PRed which allows to disable certain dates.

JoelWakefield commented 6 months ago

Hi! Is this still a desired feature?

If so, I'd like to take a crack at it - my thought was to have a parameter which accepted an array of dates dates (with specific colors?) to the component; that way users could specify which holidays they want to stand out (there are so many holidays, one could argue the whole year would just be one holiday after another).

henon commented 6 months ago

Actually we already have this functionality. Check this out https://mudblazor.com/components/datepicker#disable-or-customize-days

You can set a func that configures the CSS classes to be applied to the specific days. image