You can use the dimension input field to allow users to set top/right/bottom/left dimensions. Dimensions can be set from any side or from all sides. See the below example on how you can use dimension input field.
ExampleCopy to Clipboardarray(
'type' => 'dimension',
'heading' => esc_attr__( 'Set Margins', 'fusion-builder' ),
'description' => esc_attr__( 'A short description of the field.', 'fusion-builder' ),
'param_name' => 'margins',
'value' => array(
'margin_top' => '',
'margin_right' => '',
'margin_bottom' => '',
'margin_left' => '',
),
)x 1array(23 'type' => 'dimension',45 'heading' => esc_attr__( 'Set Margins', 'fusion-builder' ),67 'description' => esc_attr__( 'A short description of the field.', 'fusion-builder' ),89 'param_name' => 'margins',1011 'value' => array(12 'margin_top' => '',13 'margin_right' => '',14 'margin_bottom' => '',15 'margin_left' => '',16 ),1718)Parameters type
( string ) input type. heading
( string ) Setting title. description
( string ) Short description about the setting field. param_name
( string ) Attribute name to be used in the shortcode. value
( array ) Array of dimensions to be set.