FullCalendar: show reversed list views2019 Community Moderator Electionfullcalendar - display half-day event in the month viewFullCalendar month view is only showing events for the current monthFullCalendar View More Button movingView specific event in FullCalendarfullcalendar: allDay events not listed in the agendaWeekFullcalendar shows wrong day in month viewFullcalendar eventDrop with Timeline ViewOnly show upcoming events in fullcalendar list viewFullCalendar Events show in month and list, but not week and dayIs there a way to have FullCalendar start at closest date in listYear view?

Why does Captain Marvel assume the people on this planet know this?

Intuition behind counterexample of Euler's sum of powers conjecture

Is it possible to avoid unpacking when merging Association?

How did Alan Turing break the enigma code using the hint given by the lady in the bar?

Should I take out a loan for a friend to invest on my behalf?

How to draw cubes in a 3 dimensional plane

Recommendation letter by significant other if you worked with them professionally?

How can I get players to stop ignoring or overlooking the plot hooks I'm giving them?

Can I pump my MTB tire to max (55 psi / 380 kPa) without the tube inside bursting?

How do I express some one as a black person?

How does one describe somebody who is bi-racial?

How is the wildcard * interpreted as a command?

Counting all the hearts

They call me Inspector Morse

PTIJ: wiping amalek’s memory?

Virginia employer terminated employee and wants signing bonus returned

What are some noteworthy "mic-drop" moments in math?

Examples of a statistic that is not independent of sample's distribution?

What's the "normal" opposite of flautando?

How to detect if C code (which needs 'extern C') is compiled in C++

Does this video of collapsing warehouse shelves show a real incident?

Doesn't allowing a user mode program to access kernel space memory and execute the IN and OUT instructions defeat the purpose of having CPU modes?

What problems would a superhuman have whose skin is constantly hot?

What Happens when Passenger Refuses to Fly Boeing 737 Max?



FullCalendar: show reversed list views



2019 Community Moderator Electionfullcalendar - display half-day event in the month viewFullCalendar month view is only showing events for the current monthFullCalendar View More Button movingView specific event in FullCalendarfullcalendar: allDay events not listed in the agendaWeekFullcalendar shows wrong day in month viewFullcalendar eventDrop with Timeline ViewOnly show upcoming events in fullcalendar list viewFullCalendar Events show in month and list, but not week and dayIs there a way to have FullCalendar start at closest date in listYear view?










1















How can I reverse the events in the list views, so that the event with the most futuristic date appears at the beginning (top)?










share|improve this question






















  • There's no built-in option for this, so you could either modify the fullCalendar source code to do what you want, or create your own custom view (fullcalendar.io/docs/views/Custom_Views, not a quick task). Failing that you could probably make it as a feature request to the maintainer, via GitHub.

    – ADyson
    Sep 3 '17 at 6:27















1















How can I reverse the events in the list views, so that the event with the most futuristic date appears at the beginning (top)?










share|improve this question






















  • There's no built-in option for this, so you could either modify the fullCalendar source code to do what you want, or create your own custom view (fullcalendar.io/docs/views/Custom_Views, not a quick task). Failing that you could probably make it as a feature request to the maintainer, via GitHub.

    – ADyson
    Sep 3 '17 at 6:27













1












1








1








How can I reverse the events in the list views, so that the event with the most futuristic date appears at the beginning (top)?










share|improve this question














How can I reverse the events in the list views, so that the event with the most futuristic date appears at the beginning (top)?







fullcalendar






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 1 '17 at 20:12









Daniel FDaniel F

6,61345067




6,61345067












  • There's no built-in option for this, so you could either modify the fullCalendar source code to do what you want, or create your own custom view (fullcalendar.io/docs/views/Custom_Views, not a quick task). Failing that you could probably make it as a feature request to the maintainer, via GitHub.

    – ADyson
    Sep 3 '17 at 6:27

















  • There's no built-in option for this, so you could either modify the fullCalendar source code to do what you want, or create your own custom view (fullcalendar.io/docs/views/Custom_Views, not a quick task). Failing that you could probably make it as a feature request to the maintainer, via GitHub.

    – ADyson
    Sep 3 '17 at 6:27
















There's no built-in option for this, so you could either modify the fullCalendar source code to do what you want, or create your own custom view (fullcalendar.io/docs/views/Custom_Views, not a quick task). Failing that you could probably make it as a feature request to the maintainer, via GitHub.

– ADyson
Sep 3 '17 at 6:27





There's no built-in option for this, so you could either modify the fullCalendar source code to do what you want, or create your own custom view (fullcalendar.io/docs/views/Custom_Views, not a quick task). Failing that you could probably make it as a feature request to the maintainer, via GitHub.

– ADyson
Sep 3 '17 at 6:27












2 Answers
2






active

oldest

votes


















0














For anyone still looking for this, inverted event lists using jquery:



eventAfterAllRender: function(view) 
var eventosRendered = $('#timeline tr');
var eventosInversa = [];
var headingPendiente = null;
eventosRendered.map(function(key, evento)
switch(evento.className)
case 'fc-list-heading':
if (headingPendiente)
eventosInversa.unshift(headingPendiente);

headingPendiente = evento;
break;
case 'fc-list-item':
eventosInversa.unshift(evento);
break;

);
eventosInversa.unshift(headingPendiente);

$('#timeline tbody').append(eventosInversa);






share|improve this answer






























    0














    @F.Mora your solution is almost perfect but in our case we add some custom classNames and have multiple items under each headline.



    Here is our enhanced version :



    eventAfterAllRender: function(view) 
    var renderedEvents = $('.fc-list-table tr');
    var reorderedEvents = [];
    var blockEvents = null;
    renderedEvents.map(function(key, event)
    if ($(event).hasClass('fc-list-heading'))
    if (blockEvents)
    reorderedEvents.unshift(blockEvents.children());

    blockEvents = $('<tbody></tbody>');

    blockEvents.append(event);
    );
    reorderedEvents.unshift(blockEvents.children());
    $('.fc-list-table tbody').html(reorderedEvents);






    share|improve this answer
























      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46007392%2ffullcalendar-show-reversed-list-views%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      For anyone still looking for this, inverted event lists using jquery:



      eventAfterAllRender: function(view) 
      var eventosRendered = $('#timeline tr');
      var eventosInversa = [];
      var headingPendiente = null;
      eventosRendered.map(function(key, evento)
      switch(evento.className)
      case 'fc-list-heading':
      if (headingPendiente)
      eventosInversa.unshift(headingPendiente);

      headingPendiente = evento;
      break;
      case 'fc-list-item':
      eventosInversa.unshift(evento);
      break;

      );
      eventosInversa.unshift(headingPendiente);

      $('#timeline tbody').append(eventosInversa);






      share|improve this answer



























        0














        For anyone still looking for this, inverted event lists using jquery:



        eventAfterAllRender: function(view) 
        var eventosRendered = $('#timeline tr');
        var eventosInversa = [];
        var headingPendiente = null;
        eventosRendered.map(function(key, evento)
        switch(evento.className)
        case 'fc-list-heading':
        if (headingPendiente)
        eventosInversa.unshift(headingPendiente);

        headingPendiente = evento;
        break;
        case 'fc-list-item':
        eventosInversa.unshift(evento);
        break;

        );
        eventosInversa.unshift(headingPendiente);

        $('#timeline tbody').append(eventosInversa);






        share|improve this answer

























          0












          0








          0







          For anyone still looking for this, inverted event lists using jquery:



          eventAfterAllRender: function(view) 
          var eventosRendered = $('#timeline tr');
          var eventosInversa = [];
          var headingPendiente = null;
          eventosRendered.map(function(key, evento)
          switch(evento.className)
          case 'fc-list-heading':
          if (headingPendiente)
          eventosInversa.unshift(headingPendiente);

          headingPendiente = evento;
          break;
          case 'fc-list-item':
          eventosInversa.unshift(evento);
          break;

          );
          eventosInversa.unshift(headingPendiente);

          $('#timeline tbody').append(eventosInversa);






          share|improve this answer













          For anyone still looking for this, inverted event lists using jquery:



          eventAfterAllRender: function(view) 
          var eventosRendered = $('#timeline tr');
          var eventosInversa = [];
          var headingPendiente = null;
          eventosRendered.map(function(key, evento)
          switch(evento.className)
          case 'fc-list-heading':
          if (headingPendiente)
          eventosInversa.unshift(headingPendiente);

          headingPendiente = evento;
          break;
          case 'fc-list-item':
          eventosInversa.unshift(evento);
          break;

          );
          eventosInversa.unshift(headingPendiente);

          $('#timeline tbody').append(eventosInversa);







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 27 '18 at 15:30









          F. MoraF. Mora

          61




          61























              0














              @F.Mora your solution is almost perfect but in our case we add some custom classNames and have multiple items under each headline.



              Here is our enhanced version :



              eventAfterAllRender: function(view) 
              var renderedEvents = $('.fc-list-table tr');
              var reorderedEvents = [];
              var blockEvents = null;
              renderedEvents.map(function(key, event)
              if ($(event).hasClass('fc-list-heading'))
              if (blockEvents)
              reorderedEvents.unshift(blockEvents.children());

              blockEvents = $('<tbody></tbody>');

              blockEvents.append(event);
              );
              reorderedEvents.unshift(blockEvents.children());
              $('.fc-list-table tbody').html(reorderedEvents);






              share|improve this answer





























                0














                @F.Mora your solution is almost perfect but in our case we add some custom classNames and have multiple items under each headline.



                Here is our enhanced version :



                eventAfterAllRender: function(view) 
                var renderedEvents = $('.fc-list-table tr');
                var reorderedEvents = [];
                var blockEvents = null;
                renderedEvents.map(function(key, event)
                if ($(event).hasClass('fc-list-heading'))
                if (blockEvents)
                reorderedEvents.unshift(blockEvents.children());

                blockEvents = $('<tbody></tbody>');

                blockEvents.append(event);
                );
                reorderedEvents.unshift(blockEvents.children());
                $('.fc-list-table tbody').html(reorderedEvents);






                share|improve this answer



























                  0












                  0








                  0







                  @F.Mora your solution is almost perfect but in our case we add some custom classNames and have multiple items under each headline.



                  Here is our enhanced version :



                  eventAfterAllRender: function(view) 
                  var renderedEvents = $('.fc-list-table tr');
                  var reorderedEvents = [];
                  var blockEvents = null;
                  renderedEvents.map(function(key, event)
                  if ($(event).hasClass('fc-list-heading'))
                  if (blockEvents)
                  reorderedEvents.unshift(blockEvents.children());

                  blockEvents = $('<tbody></tbody>');

                  blockEvents.append(event);
                  );
                  reorderedEvents.unshift(blockEvents.children());
                  $('.fc-list-table tbody').html(reorderedEvents);






                  share|improve this answer















                  @F.Mora your solution is almost perfect but in our case we add some custom classNames and have multiple items under each headline.



                  Here is our enhanced version :



                  eventAfterAllRender: function(view) 
                  var renderedEvents = $('.fc-list-table tr');
                  var reorderedEvents = [];
                  var blockEvents = null;
                  renderedEvents.map(function(key, event)
                  if ($(event).hasClass('fc-list-heading'))
                  if (blockEvents)
                  reorderedEvents.unshift(blockEvents.children());

                  blockEvents = $('<tbody></tbody>');

                  blockEvents.append(event);
                  );
                  reorderedEvents.unshift(blockEvents.children());
                  $('.fc-list-table tbody').html(reorderedEvents);







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 6 at 15:23

























                  answered Mar 6 at 14:32









                  Yo1Yo1

                  11114




                  11114



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46007392%2ffullcalendar-show-reversed-list-views%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      1928 у кіно

                      Захаров Федір Захарович

                      Ель Греко