Class Helper
Defined in: helper.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Helper(ctrl, name)
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)
|
Method Attributes | Method Name and Description |
---|---|
perform(actionName, data)
This function performs an action of a helper.
|
Class Detail
Helper(ctrl, name)
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)
- Parameters:
- {Controller} ctrl
- Controller instance / object
- {String} name
- Name of the Helper
Method Detail
{Object}
perform(actionName, data)
This function performs an action of a helper.
- Parameters:
- {String} actionName
- Name of the method to be executed
- {Object} data
- Data to pass to the method of the helper as argument
- Returns:
- {Object} The return value of the executed method