Repository navigation
How do you add a custom input? #110
|
I am trying to open the color picker on this input. How do I achieve it? |
Replies: 5 comments 4 replies
|
I would not recommend using a button to open the color picker, you should use an input field. |
|
Hi, You are right I needed the input field however I was trying to implement it in my wysiwyg editor and showing the input field on the toolbar would not be a good ui element. I fiddled and played around with your default CSS a little bit to make a few elements invisible and to reduce the input width and height. Then used the flex box technique as shown here to achieve the desired toolbar layout. So now my toolbar displays an icon but has the Coloris input field below it. |
|
Hi, yes I solved the problem. Also is there a way to auto reverse the layout for the polaroid theme if there is now space? |
|
wow this is old! I want to do a similar thing by having a color picker pop up on top of a div. I would think it should be simple to attach this color picker to clicking on any element but I'm not seeing an option to even programmatically open the color picker |

I would not recommend using a button to open the color picker, you should use an input field.
But if you must use a button, you need to set
wrapto false in the settings.