FoxitPDFSDKforWeb v10.0.0
Foxit PDF SDK for Web
Modular Class Reference

Modular is an singleton class, you can access that instance via UIExtension.modular. More...

Public Member Functions

 module (name, deps)
 The module is a global place for creating, registering and retrieving PDFUI modules. All modules that must be registered using this mechanism.
Passing one argument retrieves an exiting UIXModule, whereas passing two arguments(the second argument is an array) creates a new UIXModule. More...
 
 root ()
 Get the root module(the default module of UIExtension ). More...
 

Detailed Description

Modular is an singleton class, you can access that instance via UIExtension.modular.

See also
UIExtension.modular
Since
7.0.0

Member Function Documentation

◆ module()

Modular::module (   name,
  deps 
)
inline

The module is a global place for creating, registering and retrieving PDFUI modules. All modules that must be registered using this mechanism.
Passing one argument retrieves an exiting UIXModule, whereas passing two arguments(the second argument is an array) creates a new UIXModule.

Parameters
namestring - module name, a globally unique string, it must be in lowercase.
[deps]Array<string|UIXModule> - an array containing name or the instance of UIXModule
Returns
UIXModule

◆ root()

Modular::root ( )
inline

Get the root module(the default module of UIExtension ).

Returns
UIXModule

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