Select2 Icon

Field Parameters

Name Type Default Description
type string ‘select2-icon’ 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

    'id'      => 'some-icon',
    'title'   => esc_html__( 'Select2 Icon', 'ultimate-page-builder' ),
    'desc'    => esc_html__( 'Choose your element background type', 'ultimate-page-builder' ),               
    'type'    => 'radio-icon', 
    'value'   => 'none',
    'options' => array(  
        'none'       => array( 
            'title'   => esc_html__( 'No background', 'ultimate-page-builder' ), 
            'icon'    => 'mdi mdi-close-octagon-outline' ),                    
        'color'   => array(
            'title' => esc_html__( 'Background Color', 'ultimate-page-builder' ), 
            'icon'    => 'mdi mdi-format-color-fill' ),                   
        'image'   => array( 
            'title' => esc_html__( 'Background Image', 'ultimate-page-builder' ), 
            'icon'    => 'mdi mdi-image' ),                    
        'both'    => array( 
            'title' => esc_html__( 'Background Image and Color', 'ultimate-page-builder' ),
            'icon'    => 'mdi mdi-folder-multiple-image' ),                    
        'video'   => array( 
            'title' => esc_html__( 'Background Video', 'ultimate-page-builder' ), 
            'icon' => 'mdi mdi-file-video' )                

results matching ""

    No results matching ""