mind_map.js
import TypeWidget from "./type_widget.js"; const TPL = ``; export default class MindMapWidget extends TypeWidget { static getType() { return "mindMap"; } doRender() { this.$widget = $(TPL); super.doRender(); } async doRefresh(note) { this.$widget.html("Hello
"); this.$widget.show(); } async entitiesReloadedEvent({loadResults}) { if (loadResults.isNoteReloaded(this.noteId)) { this.refresh(); } } }