Color formatter for table

I'm trying to get the color formatter working for a Kibana EuiBasicTable object, but I'm not seeing any changes. If I load a "Data Table" from the "New Visualization" selection window in Kibana, that table does show my color formatter changes. Can someone tell me if the EuiBasicTable supports the color formatter? Also, what table object is used for the "Data Table" widget in the Kibana Visualization? I might be able to use that table object since it does support the color formatter. I'm using Kibana 7.5.

Hi @ssimmons

I guess you are writing a custom plugin?

Are you referring to the <EuiBasicTable> react component (https://elastic.github.io/eui/#/tabular-content/tables) ? If so, this is a lower-level component and does not provide direct access to the field-formatters. Field-formatters are tied to index-patterns (https://www.elastic.co/guide/en/kibana/current/field-formatters-string.html), which are a Kibana-wide concept.

You can have custom colors inside <EuiBasicTable> but you will have to write your own function. See the render property in the examples over at https://elastic.github.io/eui/#/tabular-content/table .

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.