A component for rendering UIs based on attrbiuteDefinitions
or typeDefinitions
.
What is a type definition? https://docs.commercetools.com/http-api-projects-types
A component for rendering UIs based on attrbiuteDefinitions
or typeDefinitions
.
What is a type definition? https://docs.commercetools.com/http-api-projects-types
{ | |
[group]: { // group is products, categories, customers (each collapsible panel in the designs contains a group data) | |
auxiliaryValues: { // this values are just for the form behaviours that's why is called auxiliar | |
enabled: Boolean, // Computed if in the permissions object you have `manage${group}` or `view${group}` | |
viewOnly: Boolean, // you check for `manage${group}` false and `view${group}` true | |
viewAndEdit: Boolean, // you check only form `manage${group}` true | |
}, | |
actionRights: { | |
// publishProducts, unpublishProducts,etc. All the stuff computed from `allSupportedActionRights` and the data from the CORE API. | |
} |