fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
246 stars 247 forks source link

How can you return a string if isCustomDate only accepts a Boolean #534

Open FractalMind opened 9 months ago

FractalMind commented 9 months ago

isCustomDate only accepts a Boolean

https://github.com/fetrarij/ngx-daterangepicker-material/blob/e874ad45840a99bd082337d20aba36ca410c6193/src/daterangepicker/daterangepicker.component.ts#L368

In the doc it says:

isCustomDate (function) A function that is passed each date in the calendars before they are displayed, and may return a string or array of CSS class names to apply to that date's calendar cell

How can you return a string or an array of string?