Author Topic: How can I use color picker editors, similar to date pickers, in JavaScript grid?  (Read 390 times)

cui

  • Newbie
  • *
  • Posts: 18
    • View Profile
Hi,

I came across the Upgrade Guide which mentioned that the toolbar can be extended with a pqColorPicker. Then, in the documentation, I also noticed that within a JavaScript grid, it's possible to define custom editors.(https://paramquery.com/pro/demos#) This led me to wonder if it's feasible to combine pqColorPicker with a custom editor to enable color selection directly from a cell and return the selected value back to the cell's content.

Could someone please provide guidance on how this can be achieved? Specifically, I'm looking for steps or examples on integrating pqColorPicker into a custom editor within a JavaScript grid environment, allowing users to pick colors from a palette and have that choice reflected as the cell's value.

Thank you very much for your help.

Best regards