How do you add a custom input? #110
-
I am trying to open the color picker on this input.
How do I achieve it? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I would not recommend using a button to open the color picker, you should use an input field. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
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
wrap
to false in the settings.