How we are add ColorPicker component in form magento

How we are add ColorPicker component in form magento

ColorPicker component in magento - 

in magento The ColorPicker component uses the Spectrum and tinycolor.js libraries to make it easier to choose and implement color values.

Hi Magento friend today's i'm share How we are add ColorPicker component in form magento - 


<form>

    <colorPicker name="colors_filter" class="Magento\Ui\Component\Form\Element\ColorPicker" component="Magento_Ui/js/form/element/color-picker">

        <settings>

            <label translate="true">Color</label>

            <elementTmpl>ui/form/element/color-picker</elementTmpl>

            <colorFormat>rgb</colorFormat>

            <colorPickerMode>full</colorPickerMode>

            <dataScope>colors_filter</dataScope>

        </settings>

    </colorPicker>

</form>


How we are add ColorPicker component in form magento


Deepak Kumar Bind

Success is peace of mind, which is a direct result of self-satisfaction in knowing you made the effort to become the best of which you are capable.

Post a Comment

If you liked this post please do not forget to leave a comment. Thanks

Previous Post Next Post