How to add color picker to designer component

I want to add this type of color picker in designer property of my extension.

I don't know how to...

You can define your designer Property, to be a colour picker, by using this constant with the DesignerProperty annotation editorType parameter.
For example:

@DesignerProperty(editorType = PropertyTypeConstants.PROPERT_TYPE_COLOR)
3 Likes

Thankyou Got It!!!

Is the colour stored in int form?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.