MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / toggle

Function toggle

src/components/collapsableList.js:80–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 }
79
80 function toggle() {
81 if ($title.collapsed) {
82 expand();
83 } else {
84 collapse();
85 }
86 }
87
88 function defineProperties($el) {
89 Object.defineProperties($el, {

Callers 2

createFolderElementMethod · 0.50

Calls 2

expandFunction · 0.85
collapseFunction · 0.85

Tested by

no test coverage detected