Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68506

Fire event on table refresh

XMLWordPrintable

    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • MDL-68506-master
    • Hide
      1. View a course with > 20 participants enroled in it
      2. Navigate to the Course participants page
      3. Open the browser console
      4. In the "Console" tab run:

        require(['core_table/dynamic'], d => { document.addEventListener(d.Events.tableContentRefreshed, e => { window.console.log(e); debugger; }); });
        

      5. In the page, choose a different page of the list of participants
        1. Confirm that the page refreshed
        2. Confirm that a "CustomEvent" was shown in the browser console
      6. Expand out the CustomEvent that was dislayed
        1. Confirm that you see a target
      7. With the source paused run:

          e.target;
        

      8. Find the specified target in the Elements panel:
        In most browser there will be some way to inspect the Node in "Elements" panel, for example in Chrome you can right click and choose "Reveal in elements panel"
        1. Confirm that the target is the table that was updated
      Show
      View a course with > 20 participants enroled in it Navigate to the Course participants page Open the browser console In the "Console" tab run: require(['core_table/dynamic'], d => { document.addEventListener(d.Events.tableContentRefreshed, e => { window.console.log(e); debugger; }); }); In the page, choose a different page of the list of participants Confirm that the page refreshed Confirm that a "CustomEvent" was shown in the browser console Expand out the CustomEvent that was dislayed Confirm that you see a target With the source paused run: e.target; Find the specified target in the Elements panel: In most browser there will be some way to inspect the Node in "Elements" panel, for example in Chrome you can right click and choose "Reveal in elements panel" Confirm that the target is the table that was updated

      We need to fire an event whenever we call refreshTableContent

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Simey Lameze Simey Lameze
            Jun Pataleta Jun Pataleta
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 16 minutes
                1h 16m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.