The Spacing is an enriched field allows to add spacing like padding and margin.

Field Parameters

Name Type Default Description
type string ‘spacing’ Value identifies the field types.
id string Identifies unique ID for the field. It must be different from other existing field IDs.
title string Displays the field label.
desc string Describe the field option in details, appears underneath the field control.
required array Acts like boolean operator and provides the parent, comparison operation, and value which decides the field visibility.
value array Display default string in the text input.
options array Display default string in the text input.

Example Declaration:

    'id'      => 'margin',
    'title'   => esc_html__( 'Margin', 'ultimate-page-builder' ),
    'desc'    => esc_html__( 'Margin between two section', 'ultimate-page-builder' ),
    'type'    => 'spacing',
    'value'   => array( 10, '', 10, '' ),
    'options' => array(
        'top'    => TRUE,
        'right'  => FALSE,
        'bottom' => TRUE,
        'left'   => FALSE,

results matching ""

    No results matching ""