Hierarchy

  • Modeler
    • CustomDmnJsModeler

Constructors

Methods

  • Binds the keyboard to the curretn document. Keyboard shortcuts will trigger actions in the editor after this has been called.

    Returns void

  • Returns whether the command stack contains any actions that can be repeated. Can be used to determine if the redo button should be enabled or not.

    Returns boolean

  • Returns whether the command stack contains any actions that can be undone. Can be used to determine if the undo button should be enabled or not.

    Returns boolean

  • Destroys the modeler instance.

    Returns any

  • Parameters

    • param: any

    Returns any

  • Returns the active view.

    Returns any

  • Returns the active viewer.

    Returns any

  • Returns the size of the current selection.

    Returns number

  • Returns the current stack index.

    Returns number

  • Returns all available views.

    Returns DmnView[]

  • Imports the specified XML.

    Parameters

    • xml: string

      The XML to import

    • open: boolean = true

      Whether to open the view after importing

    Returns Promise<{
        warnings: ImportWarning[];
    }>

  • Imports the passed XML into the editor.

    Parameters

    • xml: string

      The XML to import

    • Optional options: {
          open: boolean;
      }

      Options for customization open: Whether to open the diagram after importing

      • open: boolean
    • done: ((error, warnings) => void)

      Callback that is executed after the import is done

        • (error, warnings): void
        • Parameters

          • error: undefined | Error
          • warnings: ImportWarning[]

          Returns void

    Returns any

  • Unregisters a previously registered listener for bpmn-js.

    Parameters

    • event: string

      The name of the event

    • handler: ((event, data) => void)

      The previously registered listener to unregister

        • (event, data): void
        • Parameters

          • event: any
          • data: any

          Returns void

    Returns any

  • Registers an event listener for bpmn-js.

    Parameters

    • event: string

      The name of the event

    • handler: ((event, data) => void)

      The listener to register

        • (event, data): void
        • Parameters

          • event: any
          • data: any

          Returns void

    Returns any

  • Opens the specified view.

    Parameters

    • view: DmnView

      The view to open

    Returns any

  • Instructs the command stack to repeat the last undone action.

    Returns void

  • Registers a global event listener that will receive all bpmn-js events.

    Parameters

    • listener: EventCallback

      The listener to register

    Returns void

  • Saves the editor content as XML.

    Parameters

    • params: {
          format: boolean;
      }
      • format: boolean

    Returns Promise<{
        xml: string;
    }>

  • Parameters

    • __namedParameters: {
          format: any;
      }
      • format: any
    • callback: ((err, xml) => void)
        • (err, xml): void
        • Parameters

          • err: Error
          • xml: string

          Returns void

    Returns void

  • Unbinds the keyboard from the current document. Keyboard shortcuts won't work anymore after this has been called.

    Returns void

  • Instructs the command stack to undo the last action.

    Returns void

  • Unregisters a previously registered global event listener.

    Parameters

    • listener: EventCallback

      The listener to unregister

    Returns void

Generated using TypeDoc