Skip to content

Instantly share code, notes, and snippets.

@ljmotta

ljmotta/DmnPage.tsx

Created Oct 14, 2020
Embed
What would you like to do?
DmnPage Render
import { EmbeddedEditor, useEditorRef } from "@kogito-tooling/editor/dist/embedded";
export function DmnPage() {
//
const { editor, ref } = useEditorRef();
return (
<Page>
<div className={"webapp--page-main-div"}>
<Sidebar ... />
<EmbeddedEditor
ref={ref}
file={file}
editorEnvelopeLocator={editorEnvelopeLocator}
channelType={ChannelType.EMBEDDED}
locale={"en"}
/>
</div>
</Page>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment