Function: setGroupsCollapsed()
function setGroupsCollapsed(
layout,
view,
ids,
collapsed,
boxes
): Layout;
Collapses (true) or expands groups (group:<name> ids) in view. Collapsing writes
collapsed: true and the group's current box position boxes[id] (rounded), so the collapsed
box stays where the group was; expanding removes collapsed (an explicit false in a named view
whose default view collapses it) and leaves x/y, which an expanded group ignores.
Parameters
layout
Layout | null
view
string
ids
readonly string[]
collapsed
boolean
boxes
Record<string, {
x: number;
y: number;
}>