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

Method toggle

src/dropdown.ts:78–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 private toggle() {
79 if (this.isOpen) {
80 this.close();
81 } else {
82 this.open();
83 }
84 }
85
86 private open() {
87 if (this.isOpen) return;

Callers 1

attachEventsMethod · 0.95

Calls 2

closeMethod · 0.95
openMethod · 0.95

Tested by

no test coverage detected