MCPcopy
hub / github.com/codex-team/editor.js / toggle

Method toggle

src/components/ui/toolbox.ts:225–231  ·  view source on GitHub ↗

* Close Toolbox

()

Source from the content-addressed store, hash-verified

223 * Close Toolbox
224 */
225 public toggle(): void {
226 if (!this.opened) {
227 this.open();
228 } else {
229 this.close();
230 }
231 }
232
233 /**
234 * Destroys existing popover instance and contructs the new one.

Callers 6

onchange.cy.tsFile · 0.45
readOnly.cy.tsFile · 0.45
checkStateMethod · 0.45
selectedMethod · 0.45
stretchedMethod · 0.45
dropTargetMethod · 0.45

Calls 2

openMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected