How to use the upad-parse/dist.FlatNotepad function in upad-parse

To help you get started, we’ve selected a few upad-parse examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MicroPad / Web / app / src / react-web / components / header / NotepadDropdownComponent.tsx View on Github external
private createNotepad = async () => {
		const title = await Dialog.prompt('Notebook/Notepad Title:');

		let notepad = new FlatNotepad(title);
		let section = FlatNotepad.makeFlatSection('Unorganised Notes');
		let note = new Note('Untitled Note').clone({ parent: section.internalRef });
		notepad = notepad.addSection(section).addNote(note);

		if (title) this.props.newNotepad!(notepad);
	}
}