You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Svein (JIRA)" <ji...@apache.org> on 2018/02/28 09:07:00 UTC
[jira] [Created] (TAP5-2596) Grid header should also allow HTML
Svein created TAP5-2596:
---------------------------
Summary: Grid header should also allow HTML
Key: TAP5-2596
URL: https://issues.apache.org/jira/browse/TAP5-2596
Project: Tapestry 5
Issue Type: Improvement
Components: tapestry-core
Affects Versions: 5.4.3
Reporter: Svein
I have used <{color:#660e7a}p{color}{color:#000080}:xxxHeader{color}>, but this needs an ugly hack to keep the sorting. I would like to set the header value with <PropertyModel> destinations.labelRaw({color:#008000}"<span class='glyphicon glyphicon-thumbs-up'></span>Desti­nations"{color});
GridColumns.tml may look like:
<{color:#000080}thead {color}{color:#0000ff}xmlns:{color}{color:#660e7a}t{color}{color:#008000}="http://tapestry.apache.org/schema/tapestry_5_3.xsd" {color}{color:#660e7a}xml{color}{color:#0000ff}:space{color}{color:#008000}="default"{color}>
<{color:#000080}tr {color}{color:#0000ff}data-inplace-grid-links{color}{color:#008000}="{color}{color:#000080}${{color}inplaceGridLinks{color:#000080}}{color}{color:#008000}"{color}>
<{color:#000080}th {color}{color:#660e7a}t{color}{color:#0000ff}:id{color}{color:#008000}="loop" {color}{color:#660e7a}t{color}{color:#0000ff}:type{color}{color:#008000}="Loop" {color}{color:#0000ff}source{color}{color:#008000}="columnNames" {color}{color:#0000ff}value{color}{color:#008000}="columnName" {color}{color:#0000ff}formstate{color}{color:#008000}="none"
{color} {color:#0000ff}index{color}{color:#008000}="index" {color}{color:#660e7a}t{color}{color:#0000ff}:mixins{color}{color:#008000}="rendernotification"{color}>
<{color:#660e7a}t{color}{color:#000080}:delegate {color}{color:#0000ff}to{color}{color:#008000}="blockForColumn"{color}/>
<{color:#660e7a}t{color}{color:#000080}:block {color}{color:#0000ff}id{color}{color:#008000}="standardHeader"{color}>
<{color:#660e7a}t{color}{color:#000080}:unless {color}{color:#0000ff}test{color}{color:#008000}="columnModel.labelRaw"{color}>
<{color:#000080}a {color}{color:#660e7a}t{color}{color:#0000ff}:id{color}{color:#008000}="sort" {color}{color:#0000ff}rel{color}{color:#008000}="nofollow"{color}>{color:#000080}${{color}columnModel.label{color:#000080}}{color}</{color:#000080}a{color}>
</{color:#660e7a}t{color}{color:#000080}:unless{color}>
<{color:#660e7a}t{color}{color:#000080}:if {color}{color:#0000ff}test{color}{color:#008000}="columnModel.labelRaw"{color}>
<{color:#000080}a {color}{color:#660e7a}t{color}{color:#0000ff}:id{color}{color:#008000}="sort" {color}{color:#0000ff}rel{color}{color:#008000}="nofollow"{color}>
<{color:#660e7a}t{color}{color:#000080}:outputraw {color}{color:#0000ff}value{color}{color:#008000}="columnModel.labelRaw"{color}/>
</{color:#000080}a{color}>
</{color:#660e7a}t{color}{color:#000080}:if{color}>
</{color:#660e7a}t{color}{color:#000080}:block{color}>
</{color:#000080}th{color}>
</{color:#000080}tr{color}>
</{color:#000080}thead{color}>
!image-2018-02-28-10-05-28-922.png!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)