Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
5.4.3
-
None
-
None
Description
I have used <p:xxxHeader>, but this needs an ugly hack to keep the sorting. I would like to set the header value with <PropertyModel> destinations.labelRaw("<span class='glyphicon glyphicon-thumbs-up'></span>Destinations");
GridColumns.tml may look like:
<thead xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd" xml:space="default">
<tr data-inplace-grid-links="${inplaceGridLinks{color:#000080}}">
<th t:id="loop" t:type="Loop" source="columnNames" value="columnName" formstate="none" index="index" t:mixins="rendernotification">
<t:delegate to="blockForColumn"/>
<t:block id="standardHeader">
<t:unless test="columnModel.labelRaw">
<a t:id="sort" rel="nofollow">${columnModel.label{color:#000080}}</a>
</t:unless>
<t:if test="columnModel.labelRaw">
<a t:id="sort" rel="nofollow">
<t:outputraw value="columnModel.labelRaw"/>
</a>
</t:if>
</t:block>
</th>
</tr>
</thead>