remove element from Full Legend

Asked

Viewed 78 times

1

I have a full Legend that allows me to use the events in other elements outside the calendar, however I would like the default events that comes in the calendar as for example the Prev, next and Today could be removed from the calendar so that I could use their functionality in the following elements taskElementPrev,taskElementNext,taskElementToday.

Note: below to a photo with calendar buttons that should be deleted from the calendar panel.

So in the eventClick I have this function:

  $('#calendar').fullCalendar({
            header: {
                left: 'prev,next today',
                right: 'month,agendaWeek'
            },
            defaultView: 'month',
            viewRender: function (view) {
                var title = view.title;
                $(".taskElementCalendar").html(title);
                var prev = view.prev;
                $(".taskElementPrev").html(prev);
                var next = view.next;
                $(".taskElementPrev").html(next);
                var today = view.today;
                $(".taskElementPrev").html(today);
            }});
  • 1

    Your question was very confusing. I could revise the question to try to be clearer.

  • And I really thought it was, actually the problem is complete, I will review

  • From what I understand, this function only serves to build the calendar, there is no "Event click" in it.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.