Replies: 1 comment
-
@albiere I'd be hesitant to use a component just to hold configuration. I'm guessing you might want to build your own way of setting and retrieving configuration. I'd recommend giving #912 a read. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey peeps,
I'm not sure the title is very clear, but let me try to give an example of what I'm trying to achieve.
Here's the
DataTableComponent
that I have:In this design, I'm creating a
TableColumnComponent
that only acts as configuration for theTableCellComponent
. See the<%= render column.to_cell(record) %>
. Rather than having this intermediate component, I'd like to render the cell directly passing in therecord
from thecollection
, which comes from the main componentDataTableComponent
.Is there a way to do it? Or am I not seeing something that might be simpler, perhaps?
Beta Was this translation helpful? Give feedback.
All reactions