new Helper(ctrl, name, ctx)
The Helper Class is a kind of interface-class which gives access to the methods and data of a helper (which itself belongs to a controller)
Name | Type | Description |
---|---|---|
ctrl |
Controller | Controller instance / object |
name |
String | Name of the Helper |
ctx |
Object | optional OPTIONAL the context for the helper implementation (DEFAULT: global context, i.e. window) |
Members
-
controllerController
-
The controller to which this helper belongs.
-
implObject
-
The definition of the helper object, i.e. its implementation, containing all properties and functions of the controller.
A method of the helper can be called via:this.impl.method(parameter);
-
nameString
-
The name of the helper.
-
protectedscript
-
- Deprecated
- use
impl
instead
- use
Methods
-
perform(actionName, data){Object}
-
This function performs an action of a helper.
Name Type Description actionName
String Name of the method to be executed data
Object Data to pass to the method of the helper as argument Returns:
return value of the executed method