Usage
<cui-color-picker id="colorPicker" ui-type="ColorPicker" ui-popup-view="true">
</cui-color-picker>
<cui-color-button id="colorButton" ui-color-picker-id="colorPicker">
</cui-color-button>
const colorPicker = $UI.createComponent(componyx.UI.ColorPicker, {
id: 'colorPicker',
popupView: true,
containerElement: document.body
});
colorPicker.show();
const colorButton = $UI.createComponent(componyx.UI.ColorButton, {
id: 'colorButton',
colorPickerId: 'colorPicker',
containerElement: document.body
});
colorButton.show();
With popupView enabled, ColorPicker stays hidden until the
ColorButton opens it.