FoxitPDFSDKforWeb  7.1.1
Foxit PDF SDK for Web
UIXModule Class Reference

A module constructed by Modular.module is collection of components and controllers. You can register a component class or a controller class into a module then you can use your component in template. More...

Public Member Functions

 registerComponent (ComponentClass)
 
 registerController (ControllerClass)
 

Detailed Description

A module constructed by Modular.module is collection of components and controllers. You can register a component class or a controller class into a module then you can use your component in template.

var myModule = UIExtension.modular.module('my-module', []);
class MyComponent extends UIExtension.Component {
static getName() {
return 'my-component';
}
// any component
}
myModule.registerComponent(MyComponent);
// Now, you can use your component in fragment like following:
new PDFUI({
// ...
fragments: [{
target: 'home-tab-group-hand',
action: UIExtension.UIConsts.FRAGMENT_ACTION.APPEND,
template: '<my-module:my-component></my-module:my-component>'
}]
})
See also
Modular::module

Member Function Documentation

◆ registerComponent()

UIXModule::registerComponent (   ComponentClass)
inline
Parameters
ComponentClassfunction(new::Component)

◆ registerController()

UIXModule::registerController (   ControllerClass)
inline
Parameters
ControllerClassfunction(new::Controller)

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