+ {{on "click" row.rowClicked}}>
{{#if row.enableSelection}}
{{input type="checkbox" checked=row.isSelected click=row.toggleSelected}}
@@ -188,11 +197,15 @@
{{#if (has-block "data-cells")}}
{{yield dataCells to="data-cells"}}
{{else}}
- {{!-- NOTE: you may drop this {{#if dataCells.firstColumn}}...{{/if}} when no custom first column styling is needed --}}
- {{#if dataCells.firstColumn}}
-
+ {{!-- NOTE: you may drop this {{#if dataCells.firstColumnField}}...{{/if}} when no custom first column styling is needed --}}
+ {{#if dataCells.firstColumnField}}
+
{{#if (has-block "first-data-cell")}}
{{yield cell to="first-data-cell"}}
+ {{else if dataCells.firstColumnField.customFieldComponent}}
+ {{#let dataCells.firstColumnField.customFieldComponent as |CustomComponent|}}
+
+ {{/let}}
{{else if cell.renderCustomBlock}}
{{yield cell to="data-cell"}}
{{else}}
@@ -209,11 +222,15 @@
{{/if}}
{{/if}}
- {{!-- NOTE: if you dropped custom styling for dataCells.firstColumn then use {{#each dataCells.fields as |column|}}...{{/each}} --}}
- {{#each dataCells.otherColumns as |column|}}
+ {{!-- NOTE: if you dropped custom styling for dataCells.firstColumnField then use {{#each dataCells.fields as |column|}}...{{/each}} --}}
+ {{#each dataCells.otherColumnFields as |column|}}
{{#if (has-block "rest-data-cell")}}
{{yield cell to="rest-data-cell"}}
+ {{else if column.customFieldComponent}}
+ {{#let column.customFieldComponent as |CustomComponent|}}
+
+ {{/let}}
{{else if cell.renderCustomBlock}}
{{yield cell to="data-cell"}}
{{else}}
@@ -238,9 +255,17 @@
{{#if row.linkedRoutes}}
|
{{#each row.linkedRoutes as |linkedRoute|}}
-
- {{or linkedRoute.label linkedRoute.route}}
-
+ {{#if linkedRoute.icon}}
+ {{!-- NOTE: Change if icons should be supported, use rawIcon if icon name contain _ --}}
+ {{!-- NOTE: keep the label intact for screenreaders --}}
+
+ {{or linkedRoute.label linkedRoute.route}}
+
+ {{else}}
+
+ {{or linkedRoute.label linkedRoute.route}}
+
+ {{/if}}
{{/each}}
|
{{/if}}
@@ -274,7 +299,7 @@
{{else}}
|