mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add new color select to the app
Summary: - Fix transparency support on color select - Fix z-index conflicts with color select and right panel - Makes widget's default text color visible to color select Test Plan: - Updates nbrowser/CellColor and browser/Widget.test to support new interface. Should not cause regression. Reviewers: paulfitz, dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2735
This commit is contained in:
@@ -4,7 +4,7 @@ import {ViewFieldRec} from 'app/client/models/entities/ViewFieldRec';
|
||||
import {cssRow} from 'app/client/ui/RightPanel';
|
||||
import {alignmentSelect, makeButtonSelect} from 'app/client/ui2018/buttonSelect';
|
||||
import {testId} from 'app/client/ui2018/cssVars';
|
||||
import {NewAbstractWidget} from 'app/client/widgets/NewAbstractWidget';
|
||||
import {NewAbstractWidget, Options} from 'app/client/widgets/NewAbstractWidget';
|
||||
import {dom, DomContents, fromKo, Observable} from 'grainjs';
|
||||
|
||||
/**
|
||||
@@ -14,8 +14,8 @@ export class NTextBox extends NewAbstractWidget {
|
||||
protected alignment: Observable<string>;
|
||||
protected wrapping: Observable<boolean>;
|
||||
|
||||
constructor(field: ViewFieldRec) {
|
||||
super(field);
|
||||
constructor(field: ViewFieldRec, options: Options = {}) {
|
||||
super(field, options);
|
||||
|
||||
this.alignment = fromKoSave<string>(this.options.prop('alignment'));
|
||||
this.wrapping = fromKo(this.field.wrapping);
|
||||
|
||||
Reference in New Issue
Block a user