Is there some way how to access Datagrid
row value in react admin. I have code:
const OrdersDatagrid = function() {
let fakeProps = {
basePath: "/api/orders",
hasCreate: false,
hasEdit: false,
hasList: true,
hasShow: false,
bulkActionButtons: false,
sortable: false,
exported: false,
history: {},
options: {},
permissions: null,
resource: "orders"
}
return (
<>
<List {...fakeProps}>
<Datagrid>
<ReferenceField source="customer" label="Customer" reference="customers">
<TextField source="fullName" label="name"/>
</ReferenceField>
<TextField source="state" label="State"/>
</Datagrid>
<SomeComponent
customer={customer}
/>
</List>
</>
)
}
And I want to access value customer and pass it to SomeComponent
. How can i do it? Is it possible?