Hi!
Is it possible to use the calendar view only in month view displaying a whole day? I need to make a calendar displaying my 70 colleagues holiday plans and I want to show them all (not with clicking on 'show me extras'.
Greetings
Hanne
It is possible, but with a bit of scripting. You need to make a calendar cell to be as large as you need
See the following snippet
<script>
function setCfCalendarHeight() {
if ( AJS.$('div.cf_f_list').children().length > 0) {
AJS.$('div.cf_f_list').find("div[id^='calendar']").confiFormsCalendar('option', 'height', 950);
} else {
setTimeout(function(){ setCfCalendarHeight()}, 200);
}
}
AJS.toInit(function () {
setCfCalendarHeight();
AJS.$(AJS.$('div.cf_f_list').find('> table > tbody > tr > td')[0]).css('width', '75%');
AJS.$(AJS.$('div.cf_f_list').find('> table > tbody > tr > td')[1]).css('max-width', '25%');
AJS.$(AJS.$('div.cf_f_list').find('> table > tbody > tr > td')[1]).css('word-wrap', 'break-word');
AJS.$(AJS.$('div.cf_f_list').find('> table > tbody > tr > td')[1]).find('> div').css('max-height', '750px');
});
</script>
We add this via HTML macro for example, and that reinitiates the calendar with a custom height.
In this particular example - 950 pixels
Can you help with this question @Alex Medved _ConfiForms_?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.