NJT.Event
Description
The events module has two functions.
Primarily, it handles function queues for events. Events can either be natural Javascript ones, or a synthetic event that you create and trigger for whatever reason.
This demo has two key events:
- The natural event when the page has loaded which creates a timer.
- A synthetic event that is triggered by the timer.
Secondly, it has a function map and event handler to make inline HTML events easier if you want that. As an example check out the Boop button:
Console
Page is loaded The natural 'pageloaded' queue has been triggered 3 second timer created Our synthetic queue 'ourtimerqueue' has been triggered The evt.detail.message property contains: Just a string