Skip to content

Commit bcd0664

Browse files
authored
add props.id feature (#900)
1 parent 9156dc0 commit bcd0664

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/material-table.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,7 @@ export default class MaterialTable extends React.Component {
11321132
nonce={props.options.cspNonce}
11331133
>
11341134
<this.props.components.Container
1135+
id={props.id}
11351136
style={{ position: 'relative', ...props.style }}
11361137
>
11371138
{props.options.paginationPosition === 'top' ||

types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export interface MaterialTableProps<RowData extends object> {
3434
};
3535
columns: Column<RowData>[];
3636
components?: Components;
37+
id?: string;
3738
data: RowData[] | ((query: Query<RowData>) => Promise<QueryResult<RowData>>);
3839
detailPanel?:
3940
| (({ rowData }: { rowData: RowData }) => React.ReactNode)

0 commit comments

Comments
 (0)