Mode Year, Control Highlight?

Ask for help related to our Calendar 2.x version
Post Reply
User avatar
yusbel80
Posts: 27
Joined: Wed Jul 19, 2017 3:13 pm

Mode Year, Control Highlight?

Post by yusbel80 »

Is there any way to control the color of the highlighted days in year view?
Screen Shot 2019-10-25 at 4.22.46 PM.png
Screen Shot 2019-10-25 at 4.22.46 PM.png (57.47 KiB) Viewed 2024 times

User avatar
mats
Core Developer
Core Developer
Posts: 16563
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Mode Year, Control Highlight?

Post by mats »

Sure, just look at the CSS classes we use (cal-monthview-daywithevent and cal-monthview-daywithevents) and customize them as you prefer.
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
yusbel80
Posts: 27
Joined: Wed Jul 19, 2017 3:13 pm

Re: Mode Year, Control Highlight?

Post by yusbel80 »

mats wrote:
Sun Oct 27, 2019 6:12 pm
Sure, just look at the CSS classes we use (cal-monthview-daywithevent and cal-monthview-daywithevents) and customize them as you prefer.

I was referring to dynamically chose what is highlighted, for example, similar to the "dayCellRenderer", but on the Year view, choose what gets highlighted based on a variable on each day event and choose what color to highlight them.

User avatar
mats
Core Developer
Core Developer
Posts: 16563
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Mode Year, Control Highlight?

Post by mats »

It's not supported I'm afraid but you could try overriding Cal.view.YearMonth#getDayCls to control the CSS class added to each day cell
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply