KroneCorylus / ngx-colors

Simple yet elegant Material color picker for Angular
https:\\ngx-colors.web.app
MIT License
87 stars 24 forks source link

Use color picker without clicking any button #120

Open andretse77 opened 1 week ago

andretse77 commented 1 week ago

The way ngx-colors is built, first you have to click on the color (or icon) to show up the colors palette and another button which will then lead you to the color picker. Is there any way to show directly the color picker without the need to click any button?

KroneCorylus commented 1 week ago

i dont think this is posible right now, it will on v4

KroneCorylus commented 1 week ago

duplicated of #105, there @poirierlouis provided a workaround.

andretse77 commented 6 days ago

duplicated of #105, there @poirierlouis provided a workaround.

It's not the same issue. The way it is, I still have to click one button in order to access the color picker. What I wanted was to display the color picker without having to click any button as it becomes less intuitive for users to have to click on a button to access a color picker. image image

KroneCorylus commented 6 days ago

Hey @andretse77,

Just to make sure I'm on the same page: you're looking for the panel to open directly on the color picker (sliders) when the trigger is clicked, skipping clicking on this: image im correct ?

If that's the case, the workaround mentioned in #105 can still help. It involves forcing the panel so that inmediatly switches to menu = 3 (sliders) when is opened

andretse77 commented 6 days ago

Yes, I want to skip the click of that button, but I also want to skip the use of this button image

The goal is to access the color picker without having to click on any buttons.

105 has helped me to skip on 1 button, but I still need to click on the "color button" to get to the color picker. I've tried working from #105, but nothing has worked. Have I explained myself clear, or am I not explaining myself very well?

KroneCorylus commented 6 days ago

Yeah, now I understand. unfortunately the library dont expose that component as a standalone. it will on 4.0 but it still needs some time to be ready to release. I recommend using other library like https://github.com/zefoy/ngx-color-picker that already have that functionality.