Skip to main content
Version: 9.0.2

sb.setGroupAttrs

sb.setGroupAttrs(groupName, tagObject)

Set properties for a group. The groupName is the name of the group or a variable. The tagObject contains the tags and values for the properties to set.

x, y, hidden

Parameters

ParameterTypeDescription
groupName stringThe model full path of the group to change properties on
tagObject objectAn object with tags as the keys and the new values stored as the object's key values

Examples

function set_control_hidden() {
var dk_data = {hidden: 1};
sb.setControlAttrs("my_layer.my_group", dk_data);
}