Constructor
(abstract) new module:argos/ApplicationModule()
Members
application
Properties:
Name | Type | Description |
---|---|---|
The |
Object | App instance for the application |
Methods
destroy()
Destroy loops and disconnects all _connect
s and unsubscribes all _subscribe
s.
Also calls uninitialize
init(application)
Saves the passed application instance and calls:
- loadCustomizations
- loadToolbars
- loadViews
Parameters:
Name | Type | Description |
---|---|---|
application |
Object |
initDynamic()
initDynamic is invoked after appStatePromises run.
loadAppStatePromises()
loadAppStatPromises()
- Deprecated:
- - typo, use loadAppStatePromises instead.
- Source:
(abstract) loadCache()
Loading cache resource should happen here.
loadCustomizations()
(abstract) loadCustomizationsDynamic()
loadCustomizationsDynamic is invoked after appStatePromises run.
(abstract) loadToolbars()
This function should be overriden in the app and be used to register all toolbars.
(abstract) loadToolbarsDynamic()
loadToolbarsDynamic is invoked after appStatePromises run.
(abstract) loadViews()
This function should be overriden in the app and be used to register all views.
(abstract) loadViewsDynamic()
loadViewsDynamic is invoked after appStatePromises run.
registerAppStatePromise(promise)
Registers a promise that will resolve when initAppState is invoked.
Parameters:
Name | Type | Description |
---|---|---|
promise |
Promise | function | A promise or a function that returns a promise |
registerCustomization(set, id, spec)
Passes the customization instance to App.registerCustomization.
Parameters:
Name | Type | Description |
---|---|---|
set |
String | The customization set name, or type. Examples: |
id |
String | The View id the customization will be applied to |
spec |
Object | The customization object containing at least |
registerToolbar(name, toolbar, domNode)
Passes the toolbar instance to App.registerToolbar.
Parameters:
Name | Type | Description |
---|---|---|
name |
String | Unique name of the toolbar to register. |
toolbar |
Object | Toolbar instance to register. |
domNode |
DOMNode | Optional. DOM node to place the view in. |
registerView(view, domNode, position)
Passes the view instance to App.registerView.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
view |
Object | View instance to register |
|
domNode |
DOMNode | Optional. DOM node to place the view in. |
|
position |
String | first | Optional. The position to place in the given DOM node. (first, last) |
uninitialize()
Performs any additional destruction requirements