Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Get the value in CustomBuilder.json.

CustomBuilder.

...

mergeAndSave()

To save the builder JSON definition.

...

To trigger change event to update advance tools

CustomBuilder.updateSaveStatus(mode)

To update the save button status by the undo/redo function

Parameters

    • mode - "+" or "-" to represent undo and redo 
CustomBuilder.showMessage(message)

To fade in a message on top center of the builder

Parameters

    • message - the message to show.
CustomBuilder.getCopiedElement()

To retrieve the current copied element.

Return a object with "type" and "object" attribute. The "object" is the element object.

CustomBuilder.copy(element, type)

To copy an element object to local storage.

Parameters

    • element - the element object to copy
    • type - the type of the element object
CustomBuilder.updatePasteIcon(type)

To enable/disable all paste icons based on the type

Parameters

    • type - the type of the copied element
CustomBuilder.editProperties(elementClass, elementProperties)

To edit the properties of an element

Parameters

    • elementClass - the element plugin class name
    • elementProperties - the element properties to edit
CustomBuilder.uuid()

To generate uuid.

Sample Plugins