FoxitPDFSDKforWeb v11.0.1
Foxit PDF SDK for Web
|
This Controller class encapsulates the implementation logic for IStateHandler registration and toggle event listening. A customization example:
. More...
Public Member Functions | |
constructor (component, ExpectedStateHandlerClass) | |
Classes inherit from StatefulController must override this contructor and passing a class inherit from IStateHandler into super() function. If that StateHandler class has been registed, you can also passing the state handler name instead of class into super() function. More... | |
![]() | |
constructor (component) | |
destroy () | |
Destruction this controller instance after component destroyed. | |
getComponentByName (name) | |
handle (...args) | |
![]() | |
addDestroyHook (...hooks) | |
Add a function to destroyHooks list, which will be called during destroy. More... | |
destroy () | |
ownsTo (owner) | |
Establishes an ownership relationship where this instance will be destroyed when the owner is destroyed. Additionally, the owner will be automatically removed from the destroyHooks list when this instance is destroyed. More... | |
Protected Member Functions | |
stateIn () | |
Triggered when the viewer state switched into this 'ExpectedStateHandlerClass'. More... | |
stateOut () | |
Triggered when the viewer state switched into another StateHandlerClass. More... | |
![]() | |
mounted () | |
This method is called after the component is inserted into DOM tree, where you can add some event listeners to the component or handle any other tasks. More... | |
postlink () | |
This method is called during component postlink lifecycle. More... | |
prelink () | |
This method is called during component prelink lifecycle. More... | |
Additional Inherited Members | |
![]() | |
static | extend (proto, statics) |
Extends from Controller class and generates a new Controller class! More... | |
static | getName () |
Name of the controller class used in @controller directive. More... | |
![]() | |
static | services () |
![]() | |
Component | component |
The component of this controller. More... | |
This Controller class encapsulates the implementation logic for IStateHandler registration and toggle event listening. A customization example:
.
|
inline |
Classes inherit from StatefulController must override this contructor and passing a class inherit from IStateHandler into super()
function. If that StateHandler class has been registed, you can also passing the state handler name instead of class into super()
function.
Example 1, passing a MyStateHandlerClass into super():
Example 2, passing state handler name into super():
component | Component - |
ExpectedStateHandlerClass | string|(new()=>IStateHandler) - |
|
inlineprotected |
Triggered when the viewer state switched into this 'ExpectedStateHandlerClass'.
|
inlineprotected |
Triggered when the viewer state switched into another StateHandlerClass.