Need help in the process of creating your own WordPress theme?
padding-dev option type.
| Name | Type | Default | Description |
|---|---|---|---|
| units | "px", "%" [] |
["px", "%"] |
Specify desired units for padding. |
| Name | Type | Default | Description |
|---|---|---|---|
| type | "grouped", "ungrouped" |
"grouped" |
Padding type. |
| value | number |
0 |
Should be a positive number.
|
| unit | "px", "%" |
"px" |
Grouped unit. |
| top | number |
0 |
Should be a positive number.
|
| topUnit | "px", "%" |
"px" |
Top unit. |
| right | number |
0 |
Should be a positive number.
|
| rightUnit | "px", "%" |
"px" |
Right unit. |
| bottom | number |
0 |
Should be a positive number.
|
| bottomUnit | "px", "%" |
"px" |
Bottom unit. |
| left | number |
0 |
Should be a positive number.
|
| leftUnit | "px", "%" |
"px" |
Left unit. |
{
id: "padding",
type: "padding-dev"
}
{
id: "padding",
type: "padding-dev",
config: {
units: ["px"]
},
defaultValue: {
type: "ungrouped",
top: 5,
topUnit: "px",
right: 1,
rightUnit: "%",
bottom: 5,
bottomUnit: "px",
left: 1,
leftUnit: "%",
}
}