I am creating a grid (table) component which may have different components within each cell.
I want to know if it’s possible to make it more generic, where user can pass any component and get it rendered in grid cell.
One way is check for some flag within grid component and call the corresponding component based on that.
I want a more generic
one, where user will be able to pass a renderer for the cell and get any
component rendered.
Could you please let me know if it's possible
<invoke function=“item.actionsRenderer(item, out)”/>
When the renderer is invoked it will write out its output to the provided output stream.
Hopefully that solves your problem, but let me know if not.