FoxitPDFSDKforWeb  v9.2.1
Foxit PDF SDK for Web
CreateStrikeoutController Class Reference
Inheritance diagram for CreateStrikeoutController:
StatefulController Controller Disposable

Additional Inherited Members

- Public Member Functions inherited from StatefulController
 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...
 
- Public Member Functions inherited from Controller
 constructor (component)
 
 destroy ()
 Destruction this controller instance after component destroyed.
 
 getComponentByName (name)
 
 handle (...args)
 
- Public Member Functions inherited from Disposable
 addDestroyHook (...hooks)
 
 destroy ()
 
- Static Public Member Functions inherited from Controller
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...
 
- Protected Member Functions inherited from StatefulController
 stateIn ()
 Triggered when the viewer state switched into this 'ExpectedStateHandlerClass'. More...
 
 stateOut ()
 Triggered when the viewer state switched into another StateHandlerClass. More...
 
- Protected Member Functions inherited from Controller
 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...
 
- Static Protected Member Functions inherited from Controller
static services ()
 
- Protected Attributes inherited from Controller
Component component
 The component of this controller. More...
 

Detailed Description

Feature:

click to switch current state to PDFViewCtrl.constants.STATE_HANDLER_NAMES.STATE_HANDLER_CREATE_STRIKE_OUT.

Usage:

in template:

<create-strikeout-button @controller="states:CreateStrikeoutController"></create-strikeout-button>
<dropdown-item @controller="states:CreateStrikeoutController"></dropdown-item>
<dropdown-button @controller="states:CreateStrikeoutController"></dropdown-button>
<xbutton @controller="states:CreateStrikeoutController"></xbutton>

in fragment config:

new PDFUI({
fragments: [{
target: 'create-strikeout',
config: {
callback: UIExtension.controllers.CreateStrikeoutController
}
}]
});

Foxit Software Corporation Logo
@2023 Foxit Software Incorporated. All rights reserved.