import { makeDropdownToolbar, Editor } from 'js-draw'; const editor = new Editor(document.body); const toolbar = makeDropdownToolbar(editor); toolbar.addDefaults(); toolbar.addExitButton(editor => { // TODO }); toolbar.addSaveButton(editor => { // TODO });
Returns a subclass of AbstractToolbar.
Example
Returns a subclass of AbstractToolbar.
See