fix(table-ng): inspect cell value

pull/103360/head
Ihor Yeromin 3 months ago
parent 50825a8299
commit f6b8678c7d
  1. 2
      packages/grafana-ui/src/components/Table/TableNG/Cells/TableCellNG.tsx
  2. 3
      packages/grafana-ui/src/components/Table/TableNG/TableNG.tsx

@ -179,7 +179,7 @@ export function TableCellNG(props: TableCellNGProps) {
return (
<div ref={divWidthRef} onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave} className={styles.cell}>
{cell}
{isHovered && (
{isHovered && (cellInspect || showFilters) && (
<div className={styles.cellActions}>
{cellInspect && (
<IconButton

@ -621,7 +621,6 @@ export function mapFrameToDataGrid({
const columns: TableColumn[] = [];
const hasNestedFrames = getIsNestedTable(frame);
const cellInspect = fieldConfig?.defaults?.custom?.inspect ?? false;
const filterable = fieldConfig?.defaults?.custom?.filterable ?? false;
// If nested frames, add expansion control column
@ -723,6 +722,8 @@ export function mapFrameToDataGrid({
fieldCountWithoutWidth++;
}
const cellInspect = Boolean(field.config.custom?.inspect);
// Add a column for each field
columns.push({
key,

Loading…
Cancel
Save