Skip to content

DateTimePicker #4816

Closed
Closed

Description

@itg-assistant

Davide Mercanti asked 2025-07-25 07:40:17 UTC

Is it possible to change the color of the days in the month view, depending on certain conditions (for example, if I have active reservations on that day).
How can I do this?

Activity

  1. itg-assistant commented on Jun 16, 2026

    @itg-assistant
    Author

    Julie (ITG) answered 2025-07-28 15:15:43 UTC

    It's not supported.

    The closest thing is, you can use a MonthCalendar and set the BoldedDates. You can then theme the background color of the Bolded Dates.

    The theme would look like this:
    "datechooser": {
    "components": {
    "day": {
    "states": {
    "bolded": {
    "styles": {
    "css": "{"font-weight":"900 !important", "overflow":"visible !important","display":"flex","alignItems":"center","justifyContent":"center"}",
    "backgroundColor": "green"
    },

    See attached test case with a modified version of the bootstrap theme.

    You could also consider using FullCalendar for something like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions