Augmented.js Presentation Controller Module
As of Augmented Next 3.x, this package is deprecated.
Extends Object
A controller to handle a group of views. The api is handled simular to views for use in a router.
options
Meta
- deprecated: This is deprecated.
Permissions in the controller
options
initialize - an API for the start of the controller. It is intended to add initializers here
options
render - an API for the render of the controller. It is intended to add view render methods here
remove - an API for the end of the controller. It is intended to add view removal and cleanup here
manageView - manage a view
viewPresentation.View An instance of a view to manage
removeAllViews - cleans up all views known (calling thier remove method)
getViews - get the instances of the views known
Returns Array Returns an array of view instances
Adds a permission to the controller
permissionstring The permission to addnegativeboolean Flag to set a nagative permission (optional)
Removes a permission to the controller
permissionstring The permission to removenegativeboolean Flag to set a nagative permission (optional)
Sets the permissions to the controller
permissionsarray The permissions to set
Gets the permissions to the controller
Return format:
{
include: [],
exclude: []
}
Returns object The permissions in the controller
Clears the permissions in the controller
Matches a permission in the controller
Returns boolean Returns true if the match exists
Callback to return if this controller can display
Returns boolean Returns true if this controller can display
Extends ViewController
A managed controller that automatically sets up the components Data can be passed to every view by passing using 'options'
optionsobject Options to pass to all views managed
Meta
- deprecated: This is deprecated.