Need help in the process of creating your own WordPress theme?
Border option type.
| Name | Type | Default | Description |
|---|---|---|---|
| opacity | boolean |
true |
Enable or disable opacity slider. |
| styles | array |
["none", "solid", "dashed", "dotted"] |
Valid styles:
-
"none"-
"solid"-
"dashed"-
"dotted" |
| width | array |
["grouped", "ungrouped" ] |
Valid width values:
-
"grouped"-
"ungrouped" |
| Name | Type | Default | Description |
|---|---|---|---|
| style | string |
"none" |
Allowed styles:
-
"none"-
"solid"-
"dashed"-
"dotted" |
| hex | string |
#000000 |
Color code in HEX format. |
| opacity | number |
1 |
Opacity value from 0 to 1. |
| palette | string |
"" |
Allowed palette values:
-
"color1"-
"color2"-
"color3"-
"color4"-
"color5"-
"color6"-
"color7"-
"color8" |
| widthType | string |
grouped |
Allowed values:
-
grouped-
ungrouped |
| width | number |
0 |
This value is used when
widthType is grouped. |
| topWidth | number |
0 |
This value is used when
widthType is ungrouped. |
| rightWidth | number |
0 |
This value is used when
widthType is ungrouped. |
| bottomWidth | number |
0 |
This value is used when
widthType is ungrouped. |
| leftWidth | number |
0 |
This value is used when
widthType is ungrouped. |
{
id: "border",
type: "border"
}
{
id: "border",
type: "border"
config: {
opacity: true,
styles: ["none", "solid"],
width: ["grouped"],
},
defaultValue: {
style: "dashed",
hex: "#000000",
opacity: 0.5,
palette: "",
widthType: "ungrouped",
width: 1,
topWidth: 1,
rightWidth: 1,
bottomWidth: 1,
leftWidth: 1,
}
}