colorpicker

The following extra attributes can be added to the option:

NameTypeDefaultDescription
showLibraryBooleantrueThe 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}}',
                    ],
                ],
            ]
        );
}

Was this article helpful ?

99 people consider this article helpful
Thank you! We will improve this article.

Didn’t find what you’re looking for? Please let us know

Submit a ticket