Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
smason0 committed Nov 20, 2023
1 parent 76cacb6 commit 765598b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/terra-data-grid/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/terra-data-grid/src/FlowsheetDataGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions packages/terra-framework-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Added
* Added new test for row selection for FlowsheetDataGrid.

## 1.45.0 - (November 20, 2023)

* Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
<FlowsheetDataGridPropsTable />
Expand Down

0 comments on commit 765598b

Please sign in to comment.