-
Notifications
You must be signed in to change notification settings - Fork 222
Putting table rows in other components #156
Comments
So, yeah, we should definitely allow this. The problem, at least with the Tr, is that the table parses through its children components and only pulls data from |
Thanks for taking a look. If I remove the reactable elements and go with the standard I see utility in #159 as well. When the Thanks for taking a look. |
@growlsworth exactly, I'm rendering a table which will have different type of content (buttons, dropdowns, links, etc) and I was thinking into create a base cell component wich will ask what type of cell to render, and also will validate data, etc. I solved it for now just passing the normal
|
This is proving to be more difficult than I would like. The issue is that I cannot get children of external sub components. Will require more investigation. |
+1 for this. My table rows are pretty complex, and it makes sense to put them in their own Component. Great component, BTW. |
I'm trying to replicate an Angular UI table that looks like so: http://share.aidanlister.com/cjzX and finding it somewhat impossible in Reactable. @growlsworth's renderRow looks like a really elegant way of handling it. How far up the ladder you want to go in terms of declarative vs configuration is probably another discussion ... it would be cool to specify the renderer as part of the column definition perhaps?
|
So has this issue been solved? I also have a Row component with props in the td's nested in my Table component & I get the same console errors @alfredo-cp got. |
There's an implementation discussion happening at #166. |
@alfredo-cp what was your temporary resolution? Need some help |
@jgarcia99 I posted above what my temp solution was. I ended up doing my own grid component. |
@alfredo-cp you think I should go that route I see yours was td instead |
@jgarcia99 if your data is complex rather than a plain object with strings I'd say go for your own grid component. |
Mine is just an array of objects. @alfredo-cp |
+1 for this. I need split my complex rows implementation in other component |
I have my table rows in separate components in standard html table th tr td similar to http://javaguirre.me/2014/02/11/twitter-streaming-api-with-node-socket-io-and-reactjs/ |
Hi , I am using check boxes and check all. What should do to mark all my rows check on check all click without re rendering the grid? and what should I do forcefully re render grid or invoke fetchdata method on check box checked on unchecked? |
Hey @glittershark,
I'd like to have my table rows exist in a different file/component from the table component. Something like this:
However it doesn't render properly. Any thoughts? I've tried manually specifying columns, but that didn't make a difference. The closest I've gotten is it showing three blank rows.
Thanks!
The text was updated successfully, but these errors were encountered: