PrestaShop Developer Conference
PrestaShop Developer Conference
November 6, 2024
Let's talk code, commerce and open source.

ColorPickerType

This form class is responsible for creating a color picker field

Type options

Option Type Default value Description

Code example

$builder->add('color', ColorPickerType::class, [
    'required' => true,
])

Preview example

ColorPickerType rendered in form example