Input Field – dimension

Input Field – dimension

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(2​3  'type'        => 'dimension',4​5  'heading'     => esc_attr__( 'Set Margins', 'fusion-builder' ),6​7  'description' => esc_attr__( 'A short description of the field.', 'fusion-builder' ),8​9  'param_name'  => 'margins',10​11  'value'       => array(12        'margin_top'    => '',13        'margin_right'  => '',14        'margin_bottom' => '',15        'margin_left'   => '',16   ),17​18)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.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注