Information Classification: External Restricted.
See https://www.chili-publish.com/security

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

You can listen to events using this method .addListener().

If using PublisherConnector

The first parameter takes an event name (string) and a callback function to be called when the event is fired off.

await publisherConnector.addListener(
  "FrameMoveFinished", 
  target => console.log("Frame moved with id " + target)
);

If using the editorObject in Actions or the console

window.OnEventListener = (event, target) => {
  if (event == "FrameMovedFinished") {
    console.log("Frame moved with id " + target)
  }
}

editorObject.AddListener("FrameMoveFinished");

See /wiki/spaces/CPDOC/pages/1413282 for a list of all available events

  • No labels