The following extra attributes can be added to the option:
Name | Type | Default | Description |
showLibrary | Boolean | true | The property shows the library of colors or not. |
Below is the following example of how the option can be used
public function options( $options ) { $options->add_option( 'stroke_color', [ 'type' => 'colorpicker', 'title' => __( 'Line color', 'zionbuilder' ), 'layout' => 'inline', 'default' =>'#06bee1', 'css_style' => [ [ 'selector' => '{{ELEMENT}} .className', 'value' => 'border-top-color: {{VALUE}}', ], ], ] ); }