tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svein (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2596) Grid header should also allow HTML
Date Wed, 28 Feb 2018 16:29:00 GMT

    [ https://issues.apache.org/jira/browse/TAP5-2596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16380616#comment-16380616
] 

Svein commented on TAP5-2596:
-----------------------------

I don't know how many that would like to customize the header, but I often shorten the text
in the header and adds icons. I also adds soft hypen [https://stackoverflow.com/questions/226464/soft-hyphen-in-html-wbr-vs-shy.]

> 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
>            Priority: Major
>         Attachments: image-2018-02-28-10-07-20-662.png
>
>
> 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:#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}}</a>
>  </{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-07-20-662.png!
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message