Controller(UIHandler, functionNames)
The idea behind Controller is to provide a way to pass multiple functions to an UI component in a single package.
We cannot simply pass on an UI handler instance, since those contain functions and properties we don't want to pass to a component.
Controller is a subset of UI handler's functions.
Constructor
new Controller(UIHandler, functionNames)
Parameters:
Name |
Type |
Description |
UIHandler |
Object
|
StateHandler
|
UI handler (possibly extending StateHandler) |
functionNames |
Array.<string>
|
An array of the function names the component requires access to |
- Source:
Classes
- Controller