new ParserTools()
Methods
-
createComponent(type, config)
-
create a component instance by component's type and configuration object
Parameters:
Name Type Description typestring configWebPDF.Toolbar.ComponentConfiguration Returns:
-
createLayout(type, config)
-
create a layout instance by layout's type and configuration object
Parameters:
Name Type Description typestring configWebPDF.Toolbar.ComponentConfiguration Returns:
-
extendConfig(extendFrom, config)
-
Get the default configuration by name and then merge the custom configuration with the default configuration.
Parameters:
Name Type Description extendFromstring name of default config
configWebPDF.Toolbar.ComponentConfiguration user custom configuration
Returns:
-
getController(handler)
-
Get the controller instance through the name of existing and registered controller
Parameters:
Name Type Description handlerstring | function get or create a controller instance by name or handler function
Returns:
-
parseComponent(config)
-
A parser for parse an component's configuration as component instance
Parameters:
Name Type Description configWebPDF.Toolbar.ComponentConfiguration Returns: