Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
...
The builder configuration in JSON format. Used to configure the builder callback event and the advanced tools available for the builder. Full available configuration as below. Please refer refer to Sample Plugins on how to use this config.
...
The JS files used in the builder. Please refer refer to Sample Plugins on how to implement this method.
Parameters:
contextPath - the http request context path.
buildNumber - Joget platform build number
public String getBuilderCSS(String contextPath, String buildNumber);
The CSS files used in the builder. Please refer refer to Sample Plugins on how to implement this method.
...
The HTML of builder. Please refer refer to Sample Plugins on how to implement this method.
Parameters:
def - the definition object to edit/load
json - the JSON definition to edit/load
public Object getBuilderResult(String jsonpublic Object getBuilderResult(String json, Map<String, Object> config);
Retrieve the builder end result based on json definition. Please refer . The end result can be a report PDF/HTML, an API document etc. Please refer to Sample Plugins on how to implement this method.
...
Parameters:
json - the JSON definition to generate the builder result.
config - the additional configuration/parameters use for generate the result.
public String createNewJSON(String id, String name, String description, BuilderDefinition copyDef);
Used to create the JSON definition of new object
public String getNameFromJSON(String json);
Retrieve name from the JSON definition
public String getDescriptionFromJSON(String json);
Retrieve description from the JSON definition
public String getCreateNewPageHtml();
HTML to add to the create new page
English |
---|
Utility methods and fields to use in the builder javascript. |
The app id of current editing
The app version of current editing
The builder object name return by the custom builder plugin
The builder object label return by the custom builder plugin
The JSON definition of current canvas
The dataobject of current canvas
The list of palette elements and its properties option and data.
To call a method by name
Parameters
To initialize the builder configuration by the platform
Parameters
To initialize the builder properties tab by the platform
Parameters
To initialize the builder by the platform
Parameters
To show the builder properties in a popup editor.
To save the builder properties
Parameters
To populate elements(plugins) in the side palette.
Parameters
To load a json to the builder
Parameters
Update the CustomBuilder.json based on the data stored in CustomBuilder.data
Parameters
Update CustomBuilder.json to the pass in JSON.
Parameters
Get the value in CustomBuilder.json.
To save the builder JSON definition.
Preview the builder result of CustomBuilder.json in a new browser tab.
Update the CustomBuilder.json based on edited JSON in advance tool definition tab.
Load the latest stored JSON definition from undo stack and add current JSON definition to redo stack.
Load the latest stored JSON definition from redo stack and add current JSON definition to undo stack.
Add JSON definition to undo stack.
Parameters
To trigger change event to update advance tools
To update the save button status by the undo/redo function
Parameters
To fade in a message on top center of the builder
Parameters
To retrieve the current copied element.
Return a object with "type" and "object" attribute. The "object" is the element object.
To copy an element object to local storage.
Parameters
To enable/disable all paste icons based on the type
Parameters
To edit the properties of an element
Parameters
To generate uuid.
Modify the custom builder project POM file to adding the package of plugin interface, abstract class and APIs to the <Export-Package>.
Code Block | ||
---|---|---|
| ||
<Export-Package>org.joget.pbuilder,org.joget.pbuilder.api.*</Export-Package> |
Register the plugin interface and abstract class in Activator class
Code Block | ||
---|---|---|
| ||
PluginManager.registerCustomPluginInterface(new CustomPluginInterface(PageWidget.class, "pageBuilder.pageWidget", PageBuilder.MESSAGE_PATH)); |