core_question/refresh_ui

Question bank UI refresh utility

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

Methods

(static) refresh(uiRoot, returnUrl) → {Promise}

Source:

Reload the question bank UI, retaining the current filters and sort data.

Parameters:
Name Type Description
uiRoot Element

The root element of the UI to be refreshed. Must contain "component", "callback" and "contextid" in its data attributes, to be passed to the Fragment API.

returnUrl URL

The url of the current page, containing filter and sort parameters.

Returns:

Resolved when the refresh is complete.

Type
Promise