Skip to content

Commit 3a35367

Browse files
authored
Merge pull request #39 from bci-oss/feature/#38-table-cell-tooltip
Add tooltip to all table cells with respect to entity properties values
2 parents d4dcdff + fae69b4 commit 3a35367

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
@@ -99,10 +99,13 @@
9999
</th>
100100

101101
<td data-test="table-cell"
102+
mat-cell
103+
*matCellDef="let row"
102104
<% if(options.templateHelper.isEnumPropertyWithEntityValues(value.property)) { %>
103-
[matTooltip]="!('<%= isEmptyValue %>') ? (row.<%= cellPropertyPath %><%= descriptionPipe %>:true<%= language %>) : ''" [matTooltipDisabled]="'<%= isEmptyValue %>'"
105+
<%= !isEmptyValue ? '[matTooltip]="row.' + cellPropertyPath + descriptionPipe + ':true' + language + '"' : '' %>
106+
<% } else { %>
107+
<%= !isEmptyValue ? '[matTooltip]="' + cellContent + '"' : '' %>
104108
<% } %>
105-
mat-cell *matCellDef="let row"
106109
<% if(options.templateHelper.isNumberProperty(value.property)) { %>
107110
class="table-cell-number"
108111
<% } %>

0 commit comments

Comments
 (0)