ColorPicker Remove Alpha

Is it possible to disable the Alpha element of the colorpicker without CSS?

I'd like to offer the option to pick colours using either typing HEX, RGB or picking from the HSV picker.

But don't want the Alpha part to be an option.

Lastly is there a method to get just a HEX value out? (it accepts it for input)

Hi @Chris1,

At the moment this is not possible. You can only hide all RGBA text boxes via the ShowRGBA property.

Actually, we did this as our application does not support Alpha values at the moment.

.rz-color-box:last-child {
   display: none !important;
}

.rz-hue-and-alpha > .rz-alpha-picker {
    display: none !important;
}

.rz-hue-and-alpha {
    margin-top: auto!important;   margin-bottom: auto!important;
} 

The underlying functionality is still there, but the controls are hidden.

1 Like