list with conditional children #470
Unanswered
data-handler
asked this question in
Q&A
Replies: 1 comment
-
Second argument of the Since you get both the index and data as an argument for the factory, you can return different components from the factory based on the position or item data. |
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
-
I have two components: TableCell and CheckboxTableCell
The first renders plain text, the second renders a checkbox (both render markup specific to Material Design Web components).
I also have a TableRow component with a list of TableCell children:
this.cells = list(this.el, TableCell);
But I want the first cell in each row to be a CheckboxTableCell, not a TableCell.
How would I go about this?
Beta Was this translation helpful? Give feedback.
All reactions