new Registry()
A registry used to register component, controller and layout.
Example
var registry = WebPDF.Toolbar.getRegistry() registry.registerController(name, controllerClassDef) registry.registerComponent(name, componentClassDef) registry.registerLayout(name, layoutClassDef)
Methods
-
registerComponent(name, componentClassDef, inherit)
-
Parameters:
Name Type Description namestring The name of the component and needs to guarantee uniqueness
componentClassDefWebPDF.ClassDefinition inheritstring registered component name
-
registerController(name, controllerClassDef, inherit)
-
Parameters:
Name Type Description namestring The name of the controller and needs to guarantee uniqueness
controllerClassDefWebPDF.ClassDefinition inheritstring registered controller name
-
registerLayout(name, layoutClassDef)
-
Parameters:
Name Type Description namestring The name of the layout and needs to guarantee uniqueness
layoutClassDefWebPDF.ClassDefinition -
registerPermissionDetector(type, detector)
-
Parameters:
Name Type Description typestring detectorWebPDF.Toolbar.Registry.permissionDetector
Type Definitions
-
permissionDetector(data, permissions)
-
Parameters:
Name Type Description dataobject.<string, number> permissionsobject.<string, boolean> Returns:
- Type
- boolean