this module contains all the helper methods for dom manipulation or access
Members
-
static, constant addScript
-
load a script from the given url
-
static, constant dispatchCustomEvent
-
dispatch a custom event on document object
-
static, constant newElement
-
creates a new dom element
-
static, constant on
-
add an even listener to an element given by the selector
Example
// specify the css selector followed by the event name with semilcolon in between const removePlayClick = on('#play:click', () => player.play()); // to add listener on gloal document on(':keydown', (e) => {{);
-
static, constant select
-
a jquery like css dom selector which returns dom node