MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / togglePanel

Method togglePanel

static/panes/tool.ts:348–355  ·  view source on GitHub ↗
(button: JQuery, panel: JQuery)

Source from the content-addressed store, hash-verified

346 }
347
348 togglePanel(button: JQuery, panel: JQuery) {
349 if (panel.hasClass('d-none')) {
350 this.showPanel(button, panel);
351 } else {
352 this.hidePanel(button, panel);
353 }
354 this.updateState();
355 }
356
357 override getCurrentState() {
358 const options = this.getEffectiveOptions();

Callers 1

registerCallbacksMethod · 0.95

Calls 3

showPanelMethod · 0.95
hidePanelMethod · 0.95
updateStateMethod · 0.65

Tested by

no test coverage detected