daniel-brenot / ngx-mui-datatables

Datatables for Angular using Material-UI - Original project: https://github.com/gregnb/mui-datatables
MIT License
4 stars 2 forks source link

Example for customBodyRender for columns #1

Open dieontime opened 5 years ago

dieontime commented 5 years ago

I've used mui-datatables in one of my recent react projects. Now I'm using this ngx version for the current angular project. It's a bit hard to understand how you implement customBodyRender for columns. I'm trying to render a list item component with a custom class.

Can you please provide an example of how customBodyRender can be implemented in Angular?

Project spec: Angular: 8.2.2 ngx-mui-datatables: 0.0.10

daniel-brenot commented 5 years ago

Unfortunately i am currently in the process of porting over this library properly, as for the moment it is calling react's render function. I am not yet sure how i intend to handle cases like the custom body render function, but i will update the documentation properly once i have the new update. Right now whatever you pass into this function should be passed straight to react.