ReactTable: adds color text to field options (#23427)

* Feature: adds text color field config

* Refactor: created an extension point

* Refactor: uses HOC for extension instead

* Fix: fixes background styling from affecting cells without display.color
This commit is contained in:
Hugo Häggmark
2020-04-09 07:42:31 +02:00
committed by GitHub
parent d257e661cd
commit d36397e7bd
6 changed files with 80 additions and 40 deletions
+2 -1
View File
@@ -33,10 +33,11 @@ export const plugin = new PanelPlugin<Options, CustomFieldConfig>(TablePanel)
.addSelect({
path: 'displayMode',
name: 'Cell display mode',
description: 'Color value, background, show as gauge, etc',
description: 'Color text, background, show as gauge, etc',
settings: {
options: [
{ value: 'auto', label: 'Auto' },
{ value: 'color-text', label: 'Color text' },
{ value: 'color-background', label: 'Color background' },
{ value: 'gradient-gauge', label: 'Gradient gauge' },
{ value: 'lcd-gauge', label: 'LCD gauge' },