Skip to content

Commit 4d0ae60

Browse files
committed
Add tooltip to all table cells with respect to entity properties values
see #38
1 parent 415b2bb commit 4d0ae60

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ng-generate/components/table/generators/components/table/files/__name@dasherize__.component.html.template

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,13 @@
9696
</th>
9797

9898
<td data-test="table-cell"
99+
mat-cell *matCellDef="let row"
100+
[matTooltipDisabled]="<%= isEmptyValue %>"
99101
<% if(options.templateHelper.isEnumPropertyWithEntityValues(value.property)) { %>
100-
[matTooltip]="!('<%= isEmptyValue %>') ? (row.<%= cellPropertyPath %><%= descriptionPipe %>:true<%= language %>) : ''" [matTooltipDisabled]="'<%= isEmptyValue %>'"
102+
[matTooltip]="!(<%= isEmptyValue %>) ? (row.<%= cellPropertyPath %><%= descriptionPipe %>:true<%= language %>) : ''"
103+
<% } else { %>
104+
[matTooltip]="<%= cellContent %>"
101105
<% } %>
102-
mat-cell *matCellDef="let row"
103106
<% if(options.templateHelper.isNumberProperty(value.property)) { %>
104107
class="table-cell-number"
105108
<% } %>

0 commit comments

Comments
 (0)