MCPcopy Create free account
hub / github.com/error311/FileRise / setExpanded

Function setExpanded

public/js/adminFolderAccess.js:1620–1624  ·  view source on GitHub ↗
(expanded)

Source from the content-addressed store, hash-verified

1618 if (!header || !bodyEl || !caret) return;
1619
1620 const setExpanded = (expanded) => {
1621 header.setAttribute('aria-expanded', expanded ? 'true' : 'false');
1622 bodyEl.style.display = expanded ? 'block' : 'none';
1623 caret.textContent = expanded ? '▾' : '▸';
1624 };
1625
1626 setExpanded(false);
1627

Callers 2

loadUserGroupsListFunction · 0.70
toggleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected