You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sandeepraj singh <sa...@atosorigin.com> on 2009/11/13 13:09:31 UTC
Tapestry5 Grid Coloumn Bolded when sorted
Hi,
I want to make Grid Columns bolded when they are sorted.
I am using my own grid "MyGrid" which has an embedded Tapestry5 Grid
Any Pointers
Thanks
Sandeep
--
View this message in context: http://old.nabble.com/Tapestry5-Grid-Coloumn-Bolded-when-sorted-tp26335659p26335659.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tapestry5 Grid Coloumn Bolded when sorted
Posted by sandeepraj singh <sa...@atosorigin.com>.
Thanks for the pointer Thiago,
Actually i wanted the entire coloumn to be bolded not only the header.
The below css entry made it possible
th.t-sort-column-ascending, th.t-sort-column-descending,
td.t-sort-column-ascending, td.t-sort-column-descending,{
font-weight: bold;
}
Thiago H. de Paula Figueiredo wrote:
>
> Em Fri, 13 Nov 2009 10:09:31 -0200, sandeepraj singh
> <sa...@atosorigin.com> escreveu:
>
>> Hi,
>
> Hi!
>
>> I want to make Grid Columns bolded when they are sorted.
>
> Take a look at the generated HTML. Grid adds the "t-sort-column-ascending"
> CSS class to a header cell when it's used for sorting ascending and
> "t-sort-column-descending" when sorgin descending. All you need is to add
> this to your CSS:
>
> th.t-sort-column-ascending, th.t-sort-column-descending {
> font-weight: bold;
> }
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, software architect and developer, Ars Machina Tecnologia da
> Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/Tapestry5-Grid-Coloumn-Bolded-when-sorted-tp26335659p26367325.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tapestry5 Grid Coloumn Bolded when sorted
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Fri, 13 Nov 2009 10:09:31 -0200, sandeepraj singh
<sa...@atosorigin.com> escreveu:
> Hi,
Hi!
> I want to make Grid Columns bolded when they are sorted.
Take a look at the generated HTML. Grid adds the "t-sort-column-ascending"
CSS class to a header cell when it's used for sorting ascending and
"t-sort-column-descending" when sorgin descending. All you need is to add
this to your CSS:
th.t-sort-column-ascending, th.t-sort-column-descending {
font-weight: bold;
}
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org