mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
17 lines
309 B
TypeScript
17 lines
309 B
TypeScript
|
|
import { Modal, App } from "obsidian";
|
||
|
|
|
||
|
|
class SimpleModal extends Modal {
|
||
|
|
constructor(app: App) {
|
||
|
|
super(app);
|
||
|
|
}
|
||
|
|
|
||
|
|
onOpen() {
|
||
|
|
const { contentEl } = this;
|
||
|
|
contentEl.setText('Woah!');
|
||
|
|
}
|
||
|
|
|
||
|
|
onClose() {
|
||
|
|
const { contentEl } = this;
|
||
|
|
contentEl.empty();
|
||
|
|
}
|
||
|
|
}
|