70 | {rows.map(row => {
71 | const isSelected = selection.get() === row;
72 | if (row instanceof RowGroup) {
73 | return
{
75 | e.stopPropagation();
76 | selection.set(row);
77 | row.expanded = !row.expanded;
78 | }}>
79 |
80 |
81 | {renderGroup(row.title)}
82 |
83 | ;
84 | }
85 | if (row instanceof RowItem) {
86 | // Must evaluate isLineThrough outside of
so the function component knows to update.
87 | return
;
93 | }
94 | return undefined; // Closed system: No other types expected.
95 | })}
96 |