vanilla-calendar-pro icon indicating copy to clipboard operation
vanilla-calendar-pro copied to clipboard

Add multiple classes support for "CSSClasses" parameter.

Open olegpix opened this issue 9 months ago • 0 comments

Hi, Thanks for the great plugin. I've added some improvements so that you can use the CSSClasses property with multiple classes. This is very useful for the headless ui approach, such as using a Tailwind CSS.

  • Ability to add multiple classes to "dayBtn" using the "CSSClasses" parameters.
  • Ability to add multiple classes to "day" using the "CSSClasses" parameters.
  • Ability to add multiple classes to "arrow", "arrowPrev", "arrowNext" using the "CSSClasses" parameters.
  • Ability to add multiple classes to "week", "weekDay", "weekDayWeekend" using the "CSSClasses" parameters.
  • Ability to add custom icon to the "arrowPrev" and "arrowNext" via "iconsSet" parameter.

PS: Please uncomment the code inside the demo/main.ts file to test the improvements and the new added iconsSet parameter.

olegpix avatar May 08 '24 15:05 olegpix