Skip to content

Include selected data in exportFunc #775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __tests__/pre.build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe('Render Table : Pre Build', () => {
});
});
// Render table with column render function
it('enders the render function in column', () => {
it('renders the render function in column', () => {
const data = makeData();
render(
<MaterialTable
Expand Down
3 changes: 2 additions & 1 deletion src/components/MTableToolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ export function MTableToolbar(props) {
menuitem.exportFunc(cols, datas, {
searchedData: props.dataManager.searchedData,
filteredData: props.dataManager.filteredData,
groupedData: props.dataManager.groupedData
groupedData: props.dataManager.groupedData,
selectedData: selectedRows
});
setExportButtonAnchorEl(null);
}}
Expand Down
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ export interface Options<RowData extends object> {
searchedData: RowData[];
filteredData: RowData[];
groupedData: RowData[];
selectedData: RowData[];
}
) => void;
}[];
Expand Down