MCPcopy Create free account
hub / github.com/chhoumann/quickadd / constructor

Method constructor

src/gui/MathModal.ts:39–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 constructor() {
40 super(getQuickAddInstance().app);
41
42 this.open();
43 this.display();
44
45 this.waitForClose = new Promise<string>((resolve, reject) => {
46 this.resolvePromise = resolve;
47 this.rejectPromise = reject;
48 });
49
50 new LaTeXSuggester(this.inputEl);
51
52 this.inputEl.focus();
53 this.inputEl.select();
54 }
55
56 private display() {
57 this.containerEl.addClass("quickAddModal", "qaMathModal");

Callers

nothing calls this directly

Calls 3

displayMethod · 0.95
getQuickAddInstanceFunction · 0.90
openMethod · 0.45

Tested by

no test coverage detected