Widgets
Use widgets in any Customer Service Center customizable area. Commonly used widgets include attribute_layout attribute_form, attribute_listing, text, link, tabs.
Widgets are always named directly and configured by registering them with a type.
Name | Type | Description |
config | object | an object that contains widget-specific configurations |
type | string | the required widget type |
The following is an example of widget registration:
"widgets": {
"description": {
"type": "attribute_listing",
"config": {
"attributes": [
"system_attribute",
"c_customAttribute"
],
"columns": 2
}
},
"my_layout" : {
"type" : "attribute_layout"
},
"option-selector": {
"type": "product_option"
},
"quantity-selector": {
"type": "product_quantity"
}
}
Widgets include:
- attribute_layout
- attribute_form
- attribute_listing
- text
- link
- tabs