From 2dabe0af855e033a9c3d1095927f828d73d53722 Mon Sep 17 00:00:00 2001 From: dleadbetter Date: Thu, 26 Sep 2024 11:32:32 -0400 Subject: [PATCH] CDC #271 - Updating EmbeddedList component to allow "tableProps" prop to pass through to DataTable --- packages/semantic-ui/src/components/EmbeddedList.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/semantic-ui/src/components/EmbeddedList.js b/packages/semantic-ui/src/components/EmbeddedList.js index aa3ac536..7ff1ae71 100644 --- a/packages/semantic-ui/src/components/EmbeddedList.js +++ b/packages/semantic-ui/src/components/EmbeddedList.js @@ -24,7 +24,12 @@ type Props = DataTableProps & ColumnSelectorProps & { /** * Callback fired when a table row is dragged. */ - onDrag?: (dragIndex: number, hoverIndex: number) => void + onDrag?: (dragIndex: number, hoverIndex: number) => void, + + /** + * Props to apply to the underlying Table component. + */ + tableProps?: any }; type State = { @@ -178,7 +183,8 @@ class EmbeddedList extends Component { sortDirection={this.state.sortDirection} tableProps={{ celled: true, - sortable: !this.props.onDrag + sortable: !this.props.onDrag, + ...(this.props.tableProps || {}) }} selectable={this.props.selectable} onRowSelect={this.props.onRowSelect}