MCPcopy Create free account
hub / github.com/UNLINEARITY/Obsidian-CodeSpace / toggle

Method toggle

src/dropdown.ts:212–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210 }
211
212 private toggle() {
213 if (this.isOpen) {
214 this.close();
215 } else {
216 this.open();
217 }
218 }
219
220 private open() {
221 if (this.isOpen) return;

Callers 1

attachEventsMethod · 0.95

Calls 2

closeMethod · 0.95
openMethod · 0.95

Tested by

no test coverage detected