From 765598b4a4a8bf422fa54fd2b2c6f2e0b2370565 Mon Sep 17 00:00:00 2001 From: "Mason, Steven" Date: Mon, 20 Nov 2023 13:52:33 -0600 Subject: [PATCH] changelogs --- packages/terra-data-grid/CHANGELOG.md | 3 +++ packages/terra-data-grid/src/FlowsheetDataGrid.jsx | 1 + packages/terra-framework-docs/CHANGELOG.md | 3 +++ .../doc/data-grid/FlowsheetDataGrid.4/About.5.doc.mdx | 2 ++ 4 files changed, 9 insertions(+) diff --git a/packages/terra-data-grid/CHANGELOG.md b/packages/terra-data-grid/CHANGELOG.md index bc9ee817f99..56825bb22dd 100644 --- a/packages/terra-data-grid/CHANGELOG.md +++ b/packages/terra-data-grid/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +* Added + * Added `onRowSelect` callback prop to FlowsheetDataGrid to handle row header cell selection. + ## 1.2.0 - (November 20, 2023) * Fixed diff --git a/packages/terra-data-grid/src/FlowsheetDataGrid.jsx b/packages/terra-data-grid/src/FlowsheetDataGrid.jsx index 7a87c353b53..5105e459114 100644 --- a/packages/terra-data-grid/src/FlowsheetDataGrid.jsx +++ b/packages/terra-data-grid/src/FlowsheetDataGrid.jsx @@ -258,6 +258,7 @@ function FlowsheetDataGrid(props) { }, [rows, columns, onCellRangeSelect]); const handleCellSelection = useCallback((selectionDetails) => { + // Call onRowSelect for row header column if (selectionDetails.columnIndex === 0) { if (onRowSelect) { onRowSelect(selectionDetails.rowId); diff --git a/packages/terra-framework-docs/CHANGELOG.md b/packages/terra-framework-docs/CHANGELOG.md index a76477dbc69..fe90d94426d 100644 --- a/packages/terra-framework-docs/CHANGELOG.md +++ b/packages/terra-framework-docs/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +* Added + * Added new test for row selection for FlowsheetDataGrid. + ## 1.45.0 - (November 20, 2023) * Added diff --git a/packages/terra-framework-docs/src/terra-dev-site/doc/data-grid/FlowsheetDataGrid.4/About.5.doc.mdx b/packages/terra-framework-docs/src/terra-dev-site/doc/data-grid/FlowsheetDataGrid.4/About.5.doc.mdx index 43e407bb1eb..6dd98a02510 100644 --- a/packages/terra-framework-docs/src/terra-dev-site/doc/data-grid/FlowsheetDataGrid.4/About.5.doc.mdx +++ b/packages/terra-framework-docs/src/terra-dev-site/doc/data-grid/FlowsheetDataGrid.4/About.5.doc.mdx @@ -43,6 +43,8 @@ import { FlowsheetDataGrid } from 'terra-data-grid'; |[BasicFlowsheetDataGrid](/components/cerner-terra-framework-docs/data-grid/flowsheet-data-grid/examples/basic-flowsheet-data-grid)|An example of the Flowsheet Data Grid with basic keyboard interactions.| |[NoResultsCells](/components/cerner-terra-framework-docs/data-grid/flowsheet-data-grid/examples/no-result-cells)|An example containing "No result" cells.| |[CellSelection](/components/cerner-terra-framework-docs/data-grid/flowsheet-data-grid/examples/cell-selection)|An example demonstrating the ability to select a single cell or range of cells.| +|[ColumnHeadersHidden](/components/cerner-terra-framework-docs/data-grid/flowsheet-data-grid/examples/column-headers-hidden)|An example containing visually hidden column headers.| +|[RowSelection](/components/cerner-terra-framework-docs/data-grid/flowsheet-data-grid/examples/row-selection)|An example demonstrating the ability to select a row of cells.| ## Grid props table