F2.App Class
The App Class is an optional class that can be namespaced onto the F2\Apps namespace. The F2 Docs has more information on the usage of the App Class.
src\classes\app.js:3
Constructor
F2.App
(
-
appConfig
-
appContent
-
root
)
Parameters:
-
appConfig
F2.AppConfigThe F2.AppConfig object for the app
-
appContent
F2.AppManifest.AppContentThe F2.AppManifest.AppContent object
-
root
ElementThe root DOM Element for the app
Methods
Name | Description |
---|---|
destroy ( ) | An optional destroy function that will automatically be called when F2.removeApp() and subsequently the F2.Constants.AppHandlers.APP_DESTROY AppHandler. |
init ( ) | An optional init function that will automatically be called when F2.registerApps() is called. |
Methods
destroy ( )
An optional destroy function that will automatically be called when F2.removeApp() and subsequently the F2.Constants.AppHandlers.APP_DESTROY AppHandler.
init ( )
An optional init function that will automatically be called when F2.registerApps() is called.