Browse Source

UI: color picker popover for data key config

pull/10290/head
Artem Dzhereleiko 2 years ago
parent
commit
73ac2f0936
  1. 5
      ui-ngx/src/app/modules/home/components/widget/config/data-keys.component.ts

5
ui-ngx/src/app/modules/home/components/widget/config/data-keys.component.ts

@ -523,10 +523,11 @@ export class DataKeysComponent implements ControlValueAccessor, OnInit, OnChange
const colorPickerPopover = this.popoverService.displayPopover(trigger, this.renderer,
this.viewContainerRef, ColorPickerPanelComponent, ['leftTopOnly', 'leftOnly', 'leftBottomOnly'], true, null,
{
color: key.color
color: key.color,
colorCancelButton: true
},
{},
{}, {}, true);
{}, {}, false, () => {}, {padding: '12px 4px 12px 12px'});
colorPickerPopover.tbComponentRef.instance.popover = colorPickerPopover;
colorPickerPopover.tbComponentRef.instance.colorSelected.subscribe((color) => {
colorPickerPopover.hide();

Loading…
Cancel
Save