How to hide events on monthView? - javascript

Using fullcalendar, I have events on each day. How do I go about hiding those events? I do apologize if this is an duplicate question. Example:
After entering the code that #CodeRomeos has given. Here is the result:
Another note: the style.css files have not been changed and I pulled them from,
https://github.com/angular-ui/ui-calendar
If I do the following to the code, ALL events are hidden. I only need events on the monthView to be hidden.

There was no solution posted nor I found an exact solution. A work around is the following:
$scope.uiConfig = {
calendar:{
height: 450,
editable: false,
selectable: true,
header:{
left: 'title',
center: '',
right: 'month today prev,next'
},
viewRender: function(view){
$('#myCalendar1').fullCalendar('removeEvents');
},
eventClick: $scope.alertOnEventClick,
eventDrop: $scope.alertOnDrop,
eventResize: $scope.alertOnResize,
eventRender: $scope.eventRender,
dayClick: $scope.alertOnDateClick,
timeClick: $scope.alertTest,
eventWipe: $scope.eventWipe
}
};

Related

HTML Content doesnt render in popover content in fullcalendar

I am following a this codepen Here to implement popover in my fullcalendar. But the html does not render in popover.content. Instead it just displays it as string. Here is my implementation.
function GenerateCalender(events) {
$('#calender').fullCalendar('destroy');
$('#calender').fullCalendar({
contentHeight: 400,
defaultDate: new Date(),
timeFormat: 'h(:mm)a',
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay,agenda'
},
eventLimit: true,
eventColor: '#378006',
events: event_array,
eventRender: function (calEvent, $el) {
$el.popover({
title: calEvent.title,
content: "<div><b>Example popover</b> - content</div>",
start: calEvent.start,
end: calEvent.end,
trigger: "hover",
placement: "top",
container: "body"
});
}
})
Pretty sure this will have been asked before, but you can simply set the option
html: true
in your popover options to have your content rendered as HTML.
See the documentation for details.

How to hide events and show view more modal in fullcalendar.io

I had spent three days reading documentation, and like six days testing ways to do what we want to fulfill.
I still don't know how to emulate the view more...
Here is a piece of the code I have so far (Is really long)
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: ''
},
navLinks: true,
timeFormat: 'h:mm A',
editable: true,
eventLimit: true,
eventOrder: "-sorting",
events: [
/* Lot of Events Here */
],
eventRender: function(event, element) {
$(element).hide();
$(".fc-day").on('click',function(){
console.log($(this));
});
});
The question per se would be how do we trigger the view more when clicking the day box (not the event)???

JQuery Full calender basic week view event sorting

I have used jquery fullcalender with basicWeek view but also i want to do event sorting for day also can you please help me to solve these issue.
i have used these code in my jquery
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'agendaWeek'
},
defaultView: 'basicWeek',
editable: true,
droppable: true, // this allows things to be dropped onto the calendar
draggable: true,// this allows things to be draggable onto the calendar
editable: true,
//dragRevertDuration: 0,
drop: function() {
},
eventDragStop: function( event, jsEvent, ui, view ) {
}
});
But here i can not sorting the event please provide me the solution for sorting with default week view.

Conflict dayClick and height declaration FullCalendar

I'm tryin' with FullCalendar. But when I add 'height' property into the initialize function, the dayClick function doesn't work, then I remove height, it works normally. Could you please explain to me why and how to set height for calendar.
Here is my code:
$(tag).fullCalendar({
defaultDate: date,
editable: true,
//height: 'auto',
header: {
left: 'today prev',
center: 'title',
right: 'next'
},
buttonText: {
today: 'Today'
},
dayClick: function(date, jsEvent, view) {
//code
},
});
Thank you very much!
That's invalid syntax, take out the comma after dayClick.
dayClick: function(date, jsEvent, view) {
//code
}

more link to display list of events in fullcalendar not working in mobile view

$('#calendars').fullCalendar({
header: { left: 'agendaDay,agendaWeek,month', center: 'title', right: 'prev,next' },
defaultDate: moment(deteDefault, "YYYY MM DD"),
editable: false,
ignoreTimezone: false,
eventLimit: true, // allow "more" link when too many events firstDay: firstDay.getfirstDay(),
events: { url: $base_path, error: function() { $('#script-warning').show(); } } });
This is my code when events become more then it shows a link "+more" on full-calendar and on click over that shows other events. But in my case its not working in Mobile view as show in desktop view.If have any idea how this will work,please help. Thanks in advance

Categories

Resources