hollo
hollo

Reputation: 3

resourceTimeGridDay is missing dayHeaderFormat

Im using the fullcalendar schedular v6 plugin.

And i dont really know if its a feature request, bug report or questing if its possible, so im trying stackoverflow first.

The problem is:

When I'm watching the view resourceTimeGridDay, the dayHeaderFormat is simply not rendered.

It would be really nice if I can see the same structure and consistancy in both week view as in day view which is like:

----------------------------------------------------
| WEEK  | MON 7.10   | TUE 8.10  | WED 9.10 |
--------------------------------------------
|       | RESOURCE   | RESOURCE  | RESOURCE |
---------------------------------------------

In the day view im just seing the

----------------------------------------------------
|       | RESOURCE   | RESOURCE  | RESOURCE |
---------------------------------------------

fullCalendar weekly view:

Is that not possible to get the Week and date even for day view? Because I'm also using the header.

What I have tried so far:

I have been checking the source code to figure out if there is some settings, but I just came to I need to search for the classname presentation and unfortunately it left me nowhere.

I cannot really see what is causing the dayHeaderFormat not to be rendered in resourceTimeGridDay format. Is that by design or is it a bug?

I have the following configuration:

    views: {
        timeGridTwoDay: {
            type: 'timeGrid',
            duration: { days: 2 },
            buttonText: '2 days',
        },
        resourceTimeGridTwoDay: {
            type: 'resourceTimeGrid',
            duration: { days: 2 },
            buttonText: '2 days',
            dayHeaderFormat: {
                weekday: 'long', year: 'numeric', month: 'short', day: 'numeric',
            },
        },
        resourceTimeGridDay: {
            dayHeaderFormat: {
                weekday: 'long', year: 'numeric', month: 'short', day: 'numeric',
            },
        },
    },

But when I check the Chrome element inspector the row with the week is simply not rendered.

Related issues:

I can see its rather related tickets of the same matter, but I dont really feel they are concluded, that's why I'm bringing this up:

Fullcalendar V5 : dayHeaders are not visible in resourceTimeGridDay view

However, the reason why I would really like it is because we are injecting the weather forecast into the date, and without that date, I need to do redundant code that will take account for if the header is either in the title or if the date is in the header.

I would be very nice to be able to view the date row for day view as well as weekly views, to keep some consistancy in the calendar, and not things are different places dependent on your view.

Also, according to this post: Show day header in timeline fullcalendar

It is possible in the timeline view, but its not in the timeGrid.

Upvotes: 0

Views: 43

Answers (0)

Related Questions