-
Notifications
You must be signed in to change notification settings - Fork 72
Conversation
… data-grid-add-column-action
… data-grid-add-column-action
… data-grid-add-column-action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a few comments on wording/variable naming but otherwise LGTM!
* Removed the default rowMinimumHeight from FlowsheetDataGrid so that the `terra-table` default value is used. | ||
|
||
* Added | ||
* Column actions support added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit (for consistency):
* Column actions support added. | |
* Added support for column actions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in 7dec538
* @param {PropTypes.arrayOf(columnShape)} columns - array of data grid columns | ||
* @returns bool | ||
*/ | ||
const checkForColumnActions = (columns) => (!!columns.find(column => column.action)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename this to hasColumnActions
to be more in line with how Terra generally names booleans/functions returning booleans?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed in d050bcd
/** | ||
* String that specifies the init height for the resize handler to accommodate actions row. | ||
*/ | ||
resizeHandlerInitHeight: PropTypes.string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Can we just call this initialHeight
so we don't have to abbreviate to 'init'? It can be assumed that the height is for the resize handler since it's on the ColumnResizeHandle component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed in 111b1e8
...-docs/src/terra-dev-site/doc/data-grid/WorklistDataGrid.1/Examples.3/ColumnActions.7.doc.mdx
Outdated
Show resolved
Hide resolved
...-docs/src/terra-dev-site/doc/data-grid/WorklistDataGrid.1/Examples.3/ColumnActions.7.doc.mdx
Outdated
Show resolved
Hide resolved
packages/terra-framework-docs/src/terra-dev-site/doc/table/Examples/TableColumnActions.doc.mdx
Outdated
Show resolved
Hide resolved
Co-authored-by: Sydney Combs <[email protected]>
Co-authored-by: Sydney Combs <[email protected]>
…mples/TableColumnActions.doc.mdx Co-authored-by: Sydney Combs <[email protected]>
…/WorklistDataGrid.1/Examples.3/ColumnActions.7.doc.mdx Co-authored-by: Sydney Combs <[email protected]>
…/WorklistDataGrid.1/Examples.3/ColumnActions.7.doc.mdx Co-authored-by: Sydney Combs <[email protected]>
… data-grid-add-column-action
Retroactively approving. Thanks Alla! |
Summary
terra-table
,terra-worklist-data-grid
,terra-flowsheet-data-grid
components. The column actions are placed in a separate row below the header row, they have resize handle feature the same way header cells do.compact-interactive-list
component in this PR are only for typo fixes.Testing
This change was tested using:
Reviews
In addition to engineering reviews, this PR needs:
Additional Details
This PR is a part of
UXPLATFORM-10180