Skip to content

Commit b6d6521

Browse files
committed
[ui] use displayField if displayField defined
1 parent 485ac39 commit b6d6521

File tree

1 file changed

+2
-2
lines changed
  • vertigo-ui/src/main/resources/io/vertigo/ui/components/table

1 file changed

+2
-2
lines changed

vertigo-ui/src/main/resources/io/vertigo/ui/components/table/column.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<vu:include-data th:if="${myDisplayField != null}" object="${list}" field="${myDisplayField}"/>
1818
<vu:include-data th:if="${mySortField != null && mySortField != myDisplayField}" object="${list}" field="${mySortField}"/>
1919
<q-td th:key="${columnName}" :props="props" th:with="label=null" th:attr="__${td_attrs}__" >
20-
<vu:content><th:block th:if="${field != null}">{{ props.row.[[${myDisplayField}]] }}</th:block><template th:if="${mySuffix != null}" th:v-if="|props.row['${myDisplayField}'] != null && props.row['${myDisplayField}'] != ''|"><span vu:text="${mySuffix}"></span></template></vu:content><!--/* Default content */-->
20+
<vu:content><th:block th:if="${myDisplayField != null}">{{ props.row.[[${myDisplayField}]] }}</th:block><template th:if="${mySuffix != null}" th:v-if="|props.row['${myDisplayField}'] != null && props.row['${myDisplayField}'] != ''|"><span vu:text="${mySuffix}"></span></template></vu:content><!--/* Default content */-->
2121
</q-td>
2222
</th:block>
2323

@@ -33,7 +33,7 @@
3333
<div class="q-table__grid-item-row" th:attr="__${td_attrs}__" >
3434
<div class="q-table__grid-item-title" vu:text="${columnLabel}"></div>
3535
<div class="q-table__grid-item-value" th:with="label=null">
36-
<vu:content><th:block th:if="${field != null}">{{ props.row.[[${myDisplayField}]] }}</th:block><template th:if="${mySuffix != null}" th:v-if="|props.row['${myDisplayField}'] != null && props.row['${myDisplayField}'] != ''|"><span vu:text="${mySuffix}"></span></template></vu:content>
36+
<vu:content><th:block th:if="${myDisplayField != null}">{{ props.row.[[${myDisplayField}]] }}</th:block><template th:if="${mySuffix != null}" th:v-if="|props.row['${myDisplayField}'] != null && props.row['${myDisplayField}'] != ''|"><span vu:text="${mySuffix}"></span></template></vu:content>
3737
</div>
3838
</div>
3939
</th:block>

0 commit comments

Comments
 (0)