core/custom_interaction_events

This module provides a wrapper to encapsulate a lot of the common combinations of user interaction we use in Moodle.

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

Methods

(inner) define(element, include)

Source:

Add all of the listeners on the given element for the requested events.

Parameters:
Name Type Description
element object

the DOM element to register event listeners on

include array

the array of events to be triggered