Skip to content
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

Cant search data with children having array of objects #2035

Open
bloodykheeng opened this issue May 10, 2024 · 0 comments
Open

Cant search data with children having array of objects #2035

bloodykheeng opened this issue May 10, 2024 · 0 comments

Comments

@bloodykheeng
Copy link

bloodykheeng commented May 10, 2024

this is my sample data
sample code

Are we able to filter objects as of recent like how this does it import MaterialTable from "@material-table/core";

ever since i started using this component import MUIDataTable from "mui-datatables";
my life has become misearable yet i thought its an advancement of @material-table/core

first and foremost that row data of this mui-datatables in customBodyRender: (value, tableMeta) => { console.log("🚀 ~ ListPage ~ tableMeta:", tableMeta); // const tableRowData = { ...(tableMeta.rowData ?? []) };

there returns wiredly it returns as an array instead of object since my initial table data is array of objects
and also
i cant pass in data with children which are array of objects
{ name: "vendor", label: "Vendor", options: { filter: true, sort: true, customBodyRender: (value) => { const vendor = value.name; return <div>{vendor ? vendor : "No Vendor"}</div>; } } },

that seems as a work around but its also wrong cos serach cant work at the end of the day so more advancements need to be done i request that the development team copies how this works MaterialTable from "@material-table/core";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant