Javascript module for toggling the visibility of the grade categories in the user report.
- Source:
- Copyright:
- 2022 Mihail Geshoski
- 2022 Mihail Geshoski
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Members
(static, constant) init
Init method.
Methods
(inner) registerListenerEvents(userReportId)
Register related event listeners.
Parameters:
Name | Type | Description |
---|---|---|
userReportId |
string | The ID of the user report container element. |
(inner) toggleCategory(toggleElement)
Method that handles the category toggle action.
Parameters:
Name | Type | Description |
---|---|---|
toggleElement |
object | The category toggle node that was clicked. |
(inner) updateParentCategoryRowspans(toggleElement, num)
Method that updates the rowspan value of all 'parent' category rows of a given category node.
Parameters:
Name | Type | Description |
---|---|---|
toggleElement |
object | The category toggle node that was clicked. |
num |
int | The number we want to add or subtract from the rowspan value of the 'parent' category row elements. |