The Spacing field allows the user to specify either padding or margin units to any HTML element or CSS selector that supports them.



idstringRequiredRequired. Unique ID identifying the field. It will be used as meta_key. Must be different from all other field IDs.
titlestringRequiredDisplays title of the option.
subtitlestringOptionalSubtitle display of the option, situated beneath the title.
descstringOptionalDescription of the option, appearing beneath the field control.
typestringRequiredValue identifying the field type. For Spacing field here we set value spacing
defaultarrayOptionalArray of default values. See ‘Default Options’ below.
colintOptionalThe proportion of columns that display field on 12 columns per row.
topboolOptionalFlag to display the top value input. Defaul value is true
bottomboolOptionalFlag to display the bottom value input. Defaul value is true
leftboolOptionalFlag to display the left value input. Defaul value is true
rightboolOptionalFlag to display the right value input. Defaul value is true

Default Options

topstringSets the top spacer value.
rightstringSets the right spacer value.
bottomstringSets the bottom spacer value.
leftstringSets the left spacer value.

Example Declaration