Skip to content

gi-nx


gi-nx / renameLayerGroup

ts
function renameLayerGroup(groupName: string, newGroupName: string): void;

Rename a group in the layer tree

Parameters ​

ParameterType
groupNamestring
newGroupNamestring

Returns ​

void

Throws ​

Error if the group does not exist, or a group already uses the new name.