gradereport_grader/stickycolspan

Javascript module for fixing the position of sticky headers with multiple colspans

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) init

Source:

Initialize module

Methods

(inner) defineLastRowIntersectionObserver(stickyFooterEnabled)

Source:

Define the intersection observer that will make sure that the last row is properly pinned.

In certain scenarios, such as when both 'Overall average' and 'Range' are set not to be shown in the Grader report, a user row will end up being the last row in the Grader report table. In this particular case, we want to avoid pinning the last row.

Parameters:
Name Type Description
stickyFooterEnabled boolean

Whether the page shows a sticky footer or not.