aminography / PrimeDatePicker

PrimeDatePicker is a tool that provides picking a single day, multiple days, and a range of days.
Apache License 2.0
471 stars 52 forks source link

Color each day text or change background color for each! #57

Open MahmoudAbunaji opened 3 years ago

MahmoudAbunaji commented 3 years ago

Thank you for the useful calendar

Is it available to custom the Text color or background color for a specific day?

aminography commented 2 years ago

Hi Mahmoud! There is a mechanism to decide on the text color of each day, but actually, it is not accessible from outside of the library :)) The concern is if the logic of providing colors from outside is not fast and efficient enough, it could affect the performance of the view rendering. On the other hand, it's not a good idea to get a list of days with their colors, as it doesn’t have scalability, e.g. you might need to change the color of 10th of every month. So, I'm gonna consider it somehow that works effectively.