React-big-calendar: How can I disable Time slots in day view and week view?

Created on 26 Aug 2017  路  5Comments  路  Source: jquense/react-big-calendar

Most helpful comment

We are also looking for that functionality. If someone has implemented a custom view like that I would be very happy if it could be shared here.

All 5 comments

You can't, since that is most of the view. You could write a custom view if you wanted too for that

Both the day view and week view are based on timegrid and timeslot components, how can I go about creating a view without any time slots in both day and week view just as basicWeek and basicDay options of fullCalendar?

Like I said you'd have to write those components, maybe you could leveraging the components used to build the all day row. I'm out sure what would be involved. It's not something we are planning on adding ourselves though

We are also looking for that functionality. If someone has implemented a custom view like that I would be very happy if it could be shared here.

Hello,

I found very easy solution for this but it won't work in "Day" view because of hide the rbc-time-content div.
Just you need to overwrite styling in your app after importing the BigCalendar css as below.

.rbc-time-view {
.rbc-label {
display: none;
}
.rbc-allday-cell {
height: calc(100vh - 98px);
max-height: unset;
}
.rbc-time-content {
display: none;
}
}

Result:

Screen Shot 2019-03-30 at 5 13 56 PM

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KatiaPosPago picture KatiaPosPago  路  3Comments

nicolasriccardi picture nicolasriccardi  路  3Comments

The-Oracle picture The-Oracle  路  3Comments

tiaaaa123 picture tiaaaa123  路  4Comments

connercms picture connercms  路  3Comments