Border

The Border field is a great way to set the border properties of any HTML object that supports the border property.

bolder-full

Attributes

AttributesTypeRequiredDescription
idstringRequiredUnique 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.
descstringRequiredDescription of the option, appearing beneath the field control.
typestringRequiredValue identifying the field type. For Border field here we set value border
defaultarrayOptionalArray of default values. See ‘Border Default Options’ below.
colintOptionalThe proportion of columns that display field on 12 columns per row.
topboolOptionalFlag to enable the top field border input.
Default value is false
leftboolOptionalFlag to enable the left field border input.
Default value is false
rightboolOptionalFlag to enable the right field border input.
Default value is false
bottomboolOptionalFlag to enable the bottom field border input.
Default value is false

Border Default Options

NameTypeDefaultDescriptions
border_colorstring#fffHex string representing the default color.
border_widthstringSets the default value of the border’s width.
border_top_widthstringSets the default value of the width of top border.
border_right_widthstringSets the default value of the right border.
border_bottom_widthstringSets the default value of the bottom border.
border_left_widthstringSets the default value of the left border.
border_stylestringSets the default CSS border.  Accepts: none hidden dotted dashed solid double groove
 ridge inset outset initial  inherit

Example Declaration