hLabelAttributeGroupObject

hLabelAttributeGroupObject is one of the building blocks of grouped attributes. It applies labels to an attribute group object, used to apply restrictions to a attribute group.

Call reindex() when the results of this hook will change to update the object store.

Arguments

Name Type Description
container StoreObject The object which contains this attribute group
object StoreObject The temporary object containing the group of attributes
desc number Descriptor of group
groupId number Group ID of group

Response

Return information by changing these properties of the response object.

Name Type Description
changes LabelChanges Changes to apply to the label list

JavaScript template


P.hook('hLabelAttributeGroupObject', function(response, container, object, desc, groupId) {
    // Respond to hook, for example
    // response.changes = ...
});