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
| Parameter | Type | Description |
|---|---|---|
groupName | string | The model full path of the group to change properties on |
tagObject | object | An 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);
}