Hello, is it possible to wear a mask on closed days, such as Saturday and Sunday in the calendar?
another question is it possible to have the names of the days? this would allow me to display the reserved days and hide Saturday and Sunday
Thanks
Hello, is it possible to wear a mask on closed days, such as Saturday and Sunday in the calendar?
another question is it possible to have the names of the days? this would allow me to display the reserved days and hide Saturday and Sunday
Thanks
What do you mean by this?
hide gray areas in the calendar
I don’t think the fullCalendar component supports this, the non-working hours get different styling.
remove week end its possible ?
Exclude certain days-of-the-week from being displayed.
Array, default: []
The value is an array of day-of-week indices to hide. Each index is zero-base (Sunday=0
) and ranges from 0-6
. Example:
hiddenDays: [ 2, 4 ] // hide Tuesdays and Thursdays
hiddenDays: [ 1, 3, 5 ] // hide Mondays, Wednesdays, and Fridays
By default, no days are hidden, unless weekends is set to false
.
Ah yes, you're correct
You can add this option by adding:
dmx-bind:config="{hiddenDays: [ 1, 3, 5 ]}"
to the calendar code on the page, example:
<dmx-calendar id="calendar1" views="dayGridDay,timeGridWeek" hide-non-current-dates="true" now-indicator="true" bs-tooltip="" event-order="" view="dayGridMonth" dmx-bind:config="{hiddenDays: [ 1, 3, 5 ]}">
@teodor are there documents on that dmx-bind:config? I'm working on a project with fullcalendar and I can't quite seem to find how to format somethings that I needed formatted. I tried changing the fullcalendar.js, i think that's the name to make the changes I need. But wappler wants to write over that every time? How do we set a config file of some sort on that to make some changes, like I don't want the today and next and previous buttons at the top? Didn't know if I could adjust that the same way as this?
Please post a new topic explaining what are you trying to do, so we can help.
Will do, Didn't mean to hijack this one....
So to hide the closed hours I can use the options below but how do I replace the quotation marks?
Determines the last time slot that will be displayed for each day. In line with the discussion about the Event object, it is important to stress that this should be specified as an exclusive end time.
Duration, default: "24:00:00"
The default "24:00:00"
means the end time will be at the very end of the day (midnight).
Determines the last slot, even when the scrollbars have been scrolled all the way back.
Determines the first time slot that will be displayed for each day.
Duration, default: "00:00:00"
The default "00:00:00"
means the start time will be at the very beginning of the day (midnight).
Determines the first time slot, even when the scrollbars have been scrolled all the way back
dmx-bind:config="{hiddenDays: [6,0], slotMinTime: '08:30:00', slotMaxTime: '23:59:00'}"
it's good,thanks