Checkbox

The checkbox is an efficient field, offers a single check option or a group of multi-check options.

Field Parameters

Name Type Default Description
type string ‘checkbox’ 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 Options for select

Example Declaration

array(
    'id'    => 'icon',
    'title' => esc_html__( 'Label', 'ultimate-page-builder' ),
    'desc'   => wp_kses_post( __( 'Description', 'ultimate-page-builder' )),
    'type'   => 'checkbox',
    'value' => array('key1'),
    'options' =>array(
        'key1'=> 'Label 1', 
        'key2'=> 'Label 2',
        'key3'=> 'Label 3'
        )
    );

results matching ""

    No results matching ""