function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pedrosampaiopedrosampaio 

ColorPicker

How can I use the Color Picker component used in some Dashboard configurations (ex: Dashboard > Key Metrics > Customize > Select Chart & Highlights)?

 

I tried to copied the hmtl/javascript used in that page but I can't get the popup to close.

 

 

Or can anyone get me a sample code of a color picker/chooser embebed in a vf page?

 

 

Thanks.

 

 

Best Answer chosen by Admin (Salesforce Developers) 
Ispita_NavatarIspita_Navatar

I think you can use a reuseable javascript code for this purpose. You can upload the library files in the static resources. Include the files in the visual force pages where you want to invoke the color picker.

Then you can call the function defined in the files uploaded in the static resources to invoke the color picker functions.

You can refer to the link below for reference:-

 

http://jscolor.com/

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.