Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Created October 14, 2020 20:49
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/3a0797a555a7f5f708457d3247031d5e to your computer and use it in GitHub Desktop.
Save ljmotta/3a0797a555a7f5f708457d3247031d5e to your computer and use it in GitHub Desktop.
DmnPage File State
import { File } from "@kogito-tooling/editor/dist/embedded";
export function DmnPage() {
const [file, setFile] = useState<File>({
fileName: "new-file",
fileExtension: "dmn",
getFileContents: () => Promise.resolve(""),
isReadOnly: false,
});
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment