DevExtreme jQuery - Support Alpha Channel

By default, the ColorBox does not allow an end user to control the transparency, or alpha channel component, of the selected color. If you need to allow this, set the editAlphaChannel option to true. This setting adds a slider that regulates transparency to the drop-down editor, and changes the textual representation of the selected color from hexadecimal to RGBA.

jQuery
JavaScript
 $(function() {
    $("#colorBoxContainer").dxColorBox({
        value: "rgba(255, 144, 0, 0.3)",
        editAlphaChannel: true
    });
});
Angular
HTML
TypeScript
<dx-color-box
    [(value)]="color"
    [editAlphaChannel]="true">
</dx-color-box>
import { DxColorBoxModule } from "devextreme-angular";
// ...
export class AppComponent {
    color: string = "rgba(255, 144, 0, 0.3)"
}
@NgModule({
    imports: [
        // ...
        DxColorBoxModule
    ],
    // ...
})
See Also