-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
How can i disable slider bar ? #33
Comments
A hacky workaround to this would be hiding the slider with CSS: .iro__slider {
display: none;
visibility: hidden;
pointer-events: none;
} Then stop it from interacting with mouse clicks: colorPicker.on("mount", function(){
colorPicker.ui.splice(1, 1);
}); Custom UI layouts are being planned for 4.0, though! The discussion for that is here |
Thanks for your support 😄 ! |
iro.js version 4.0.0 is now live, which provides the ability to disable the brightness bar with the new custom layout option: var colorPicker = new iro.ColorPicker('#color-picker', {
layout: [
{
component: iro.ui.Wheel,
options: {}
}
]
}); -- Sorry for taking so long to find a good way to implement this! |
:) no problem. I fixed it with your solution above, and it's work! |
I hope you can help.
I tried with a stupid way:
g[0].innerHTML = ''
in beforemount
event.Remove some element and it hidden but when I clicking on the white space (show it before) It still works as if nothing had happened.
p/s: same #13
The text was updated successfully, but these errors were encountered: