core_form/filetypes

Description:
  • This module allows to enhance the form elements MoodleQuickForm_filetypes

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

This module allows to enhance the form elements MoodleQuickForm_filetypes

Methods

(inner) prepareBrowserModal() → {Promise}

Description:
  • Create and set the modal for displaying the browser (this.browserModal).

Source:
Returns:
Type
Promise

(inner) prepareBrowserTree() → {Promise}

Description:
  • Create and set the tree in the browser modal's body.

Source:
Returns:
Type
Promise

(inner) prepareBrowserTrigger() → {Promise}

Description:
  • Create and set the browser trigger widget (this.browserTrigger).

Source:
Returns:
Type
Promise

(inner) saveBrowserModal()

Description:
  • Update the associated input field with selected file types.

Source:

(inner) toggleCheckbox(key)

Description:
  • Change the checked status of the given file type (group or extension).

Source:
Parameters:
Name Type Description
key String