Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use color picker without clicking any button #120

Open
andretse77 opened this issue Sep 30, 2024 · 6 comments
Open

Use color picker without clicking any button #120

andretse77 opened this issue Sep 30, 2024 · 6 comments
Assignees
Labels
Confirmed enhancement New feature or request

Comments

@andretse77
Copy link

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
Copy link
Owner

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

@KroneCorylus KroneCorylus added the enhancement New feature or request label Oct 4, 2024
@KroneCorylus
Copy link
Owner

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

@andretse77
Copy link
Author

andretse77 commented Oct 7, 2024

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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.

@KroneCorylus KroneCorylus reopened this Oct 7, 2024
@KroneCorylus KroneCorylus self-assigned this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants