Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2596

Grid header should also allow HTML

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.4.3
    • None
    • tapestry-core
    • 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>Desti­nations");

       

      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>

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            svein Svein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: