Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author king-theme

    (@kingthemes)

    Please use this sample code to create 2 tab “General” and “Responsive”

    'kc_column' => array(
    	'name' => 'Column',
    	'category' => '',
    	'title' => 'Column Settings',
    	'is_container' => true,
    	'css_box' => true,
    	'tab_icons' => array(
    		'general' => 'et-tools',
    		'responsive' => 'et-mobile'
    	),
    	'params' => array(
    		'general' => array(
    			array(
    				'name' => 'col_container_class',
    				'label' => __( 'Container class name', 'kingcomposer' ),
    				'type' => 'text',
    				'description' => __( 'Add additional classes name to the container in a column.', 'kingcomposer' )
    			),
    			array(
    				'name' => 'col_class',
    				'label' => __( 'Column class name', 'kingcomposer' ),
    				'type' => 'text',
    				'description' => __( 'Add additional classes name to ther outer layer of a column.', 'kingcomposer' )
    			)
    		),
    		'responsive' =>  array(
    			'name' => 'important',
    			'label' => __( 'Important', 'kingcomposer' ),
    			'type' => 'checkbox',
    			'options' => array(
    				'yes' =>  __( 'Yes, Please!', 'kingcomposer' ),
    			),
    			'description' => __( 'Make this option as important and have a higher priority than other places', 'kingcomposer' )
    		),
    		array(
    			'name' => 'display',
    			'label' => __( 'Hide Column', 'kingcomposer' ),
    			'type' => 'checkbox',
    			'options' => array(
    				'hide' =>  __( 'Yes, Please!', 'kingcomposer' ),
    			),
    			'description' => __( 'Hide this column in this screen size', 'kingcomposer' )
    		),
    
    	)
    ),
    Thread Starter CodeCans

    (@mr_sagar)

    Hi,
    Super ?? it’s working nice, thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add group in setting panel with params’ is closed to new replies.