| FoxitPDFSDKforWeb v11.0.4 Archives Foxit PDF SDK for Web

Public Member Functions | List of all members
Modular Class Reference
UIExtension

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

  name | string - 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

@2025 Foxit Software Incorporated. All rights reserved.