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

Method toggle

src/code_view.ts:430–436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428 }
429
430 toggle() {
431 if (this.panelEl.hasClass("is-hidden")) {
432 this.open();
433 } else {
434 this.close();
435 }
436 }
437
438 isOpen(): boolean {
439 return !this.panelEl.hasClass("is-hidden");

Callers 1

toggleSearchPanelMethod · 0.45

Calls 2

openMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected