Box Model

Allows you to display box model controls for your widget.


Widget Configuration Output

{
"productCardMargin": {
"top": {
"value": "0",
"type": "px"
},
"right": {
"value": "10.5",
"type": "px"
},
"bottom": {
"value": "0",
"type": "px"
},
"left": {
"value": "10.5",
"type": "px"
}
}
}

User Interface Output

output


JSON Schema

PropertyTypeDescriptionExample
typestringThe type of setting component to display.”boxModel”
labelstringThe user friendly message to inform the user how this setting will be used.”Margin”
idstringThe variable name where the setting value will be available in the widget template.”productCardMargin”
defaultobjectThe default value to use when rendering the widget for the first time.
default.topobject
default.top.valuestring”0”
default.top.typestring”px”
default.rightobject
default.right.valuestring”10.5”
default.right.typestring”px”
default.bottomobject
default.bottom.valuestring”0”
default.bottom.typestring”px”
default.leftobject
default.left.valuestring”10.5”
default.left.typestring”px”