-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to display multiple events by having flexible row height? #25
Comments
Added these code to get a dynamic height for each row in the calendar. However, it is no too 'responsive' to the width of the browser. $('#calendar').on('shown.calendar.calendario', function () {
|
Why don't you just use a scroll, like a javascript custom scroll or css one. |
There will be at least 8-15 events per day. Using a scroll will make it rather untidy. By the way, the calendar appears first then followed by the data from the database. How do I load the data first? |
https://github.com/CalendarioFX/Calendario/blob/master/index2.html#L114 like this, if you happen to load the events through ajax or whatever method you are using. You can initialize calendar after a successful ajax and likewise. |
Can you guide me? I load the events using:
|
How about you initialize the calendar when you have the events $.get('/Calendar/CalendarJson', { name: 'content' }, function (data) {
var obj = JSON.stringify(data);
$( '#calendar' ).calendario({
caldata : data, //events go here
displayWeekAbbr : true,
events: ['click', 'focus']
});
}, 'json'); |
Thanks, it works! |
I have managed to output multiple events on one day from my database. However, the height of each row in the Calendar does not adjust to the number of events.
Is there anyway to have the calendar adjust its row height automatically depending on the number of events, without using scroll?
The text was updated successfully, but these errors were encountered: