Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14295

Introduce an API to refresh a livetable

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 9.5-rc-1
    • 9.3.1
    • LiveTable
    • None
    • Unknown

    Description

      Refreshing a livetable from javascript is a frequent need. However we don't have an API for that, so developers write:

      var end = livetable.limit;
      var start = Math.max(livetable.lastOffset, 1); 
      livetable.clearCache();
      livetable.getRows(start, end, start, end); 
      

      (example coming from http://markmail.org/message/3snpauu2efjmz2iu)

      It would be better to have a method called refresh().

      Attachments

        Activity

          People

            gdelhumeau Guillaume Delhumeau
            gdelhumeau Guillaume Delhumeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: