groups

groups.setAnchor

setAnchor(groupId: string, newAnchorId: string): void

Switch the active anchor of a collapsed group. No-op if the group is not collapsed, the new anchor is not a member, or it equals the current anchor. Emits "group:anchor-changed".

groupIdstring
newAnchorIdstring

Returns: void