Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Created October 14, 2020 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/f132e8b921022da375f031c8083a33bd to your computer and use it in GitHub Desktop.
Save ljmotta/f132e8b921022da375f031c8083a33bd to your computer and use it in GitHub Desktop.
TodoListView Envelope Init
import { init } from "todo-list-view/dist/envelope";
import { EnvelopeBusMessage } from "@kogito-tooling/envelope-bus/dist/api";
init({
container: document.getElementById("envelope-app")!,
bus: {
postMessage<D, Type>(message: EnvelopeBusMessage<D, Type>, targetOrigin?: string, transfer?: any) {
window.parent.postMessage(message, "*", transfer);
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment