UIXAddon, an addon that relies on the UIExtension of Foxit PDF SDK for Web, is packaged separately into a JS file. The applications can load this addon as needed. This class defines the method templates what a UIXAddon needs to implement.
More...
|
| receiveAction (actionName, args=[]) |
| When the user calls PDFUI.callAddon, the receiveAction method on the corresponding Addon will be triggered. Addon exposes the API through this method and different action values. In the custom Addon subclass, you should implement this method to implement exposed APIs. More...
|
|
|
static | initOnLoad () |
| Called after loading this addon, and only called once, The UI modules, components and controllers should be initialized and registered in this function.
|
|
UIXAddon, an addon that relies on the UIExtension of Foxit PDF SDK for Web, is packaged separately into a JS file. The applications can load this addon as needed. This class defines the method templates what a UIXAddon needs to implement.
◆ afterMounted()
UIXAddon::afterMounted |
( |
|
root | ) |
|
|
inline |
Lifecycle method: this method is called after the UI component element mout into DOM tree.
- Parameters
-
◆ beforeMounted()
UIXAddon::beforeMounted |
( |
|
root | ) |
|
|
inline |
Lifecycle method: this hook is called before the UI component element mount into DOM tree.
- Parameters
-
◆ destroy()
Lifecycle method: to override this method to implement the destroying logics. This method is called when a PDFUI instance is destroyed or the addon is dettached from PDFUI.
- Returns
- Promise<void>|void
◆ fragments()
◆ getI18NResources()
UIXAddon::getI18NResources |
( |
| ) |
|
|
inline |
Get I18n resources. More details about I18Next, please visit: https://www.i18next.com/.
- Returns
- object
- format:
- { [language]: { [key]: value } }
◆ getName()
Returns the name of an addon.
- Returns
- string
◆ init()
Called when initializing this addon instance.
- Parameters
-
◆ pdfViewerCreated()
UIXAddon::pdfViewerCreated |
( |
|
pdfviewer | ) |
|
|
inline |
Lifecycle method: this method is called when PDFViewer instance has been created and is before the afterMounted method .
- Parameters
-
◆ receiveAction()
UIXAddon::receiveAction |
( |
|
actionName, |
|
|
|
args = [] |
|
) |
| |
|
inlineprotected |
When the user calls PDFUI.callAddon, the receiveAction method on the corresponding Addon will be triggered. Addon exposes the API through this method and different action values. In the custom Addon subclass, you should implement this method to implement exposed APIs.
- Parameters
-
actionName | string |
args | any[] |