Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Created October 14, 2020 20:54
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/176ccf870384e599c2fceecef132a717 to your computer and use it in GitHub Desktop.
Save ljmotta/176ccf870384e599c2fceecef132a717 to your computer and use it in GitHub Desktop.
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