Skip to content

Conversation

denis-taran
Copy link

Currently it is not possible to apply a different style to the scheduler based on the state of the expand plugin via CSS selectors, because all changes are made by modifying style properties directly. This change will add dhx_scheduler_expanded class every time the scheduler is expanded and remove it, when the scheduler is collapsed. I didn't use the classList property, so it should work even with older browsers. After the change, scheduler styling can be modified via CSS selectors like this:

.dhx_scheduler_expanded .dhx_cal_date {
  font-size: 20px;
}

Currently it is not possible to apply a different style to the scheduler based on the state of the expand plugin via CSS selectors, because all changes are made by modifying style properties directly. This change will add `dhx_scheduler_expanded` class every time the scheduler is expanded and remove it, when the scheduler is collapsed. I didn't use the `classList` property, so it should work even with older browsers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant