You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Emanuele Gesuato <eg...@ibc.it> on 2008/12/19 10:04:08 UTC

Adding images for sorting to HeadersToolbar

Hi there,


We are using the default HeadersToolbar in an our customized DataTable, 
now we would like to add in every cell of the header two images (an up 
and down arrows) for helping the user sorting the table.

I think this is a common feature and i was wondering if there are some 
examples around.

Our context is that in the beginning either the images are displayed and 
once the user clicks on one of them, the other one have to disappear. It 
seems quite simple but i would like to see some examples around the net.


Thanks for any suggestion,
Emanuele


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Adding images for sorting to HeadersToolbar

Posted by Adriano dos Santos Fernandes <ad...@uol.com.br>.
Emanuele Gesuato escreveu:
> Hi there,
>
>
> We are using the default HeadersToolbar in an our customized 
> DataTable, now we would like to add in every cell of the header two 
> images (an up and down arrows) for helping the user sorting the table.
>
> I think this is a common feature and i was wondering if there are some 
> examples around.
>
> Our context is that in the beginning either the images are displayed 
> and once the user clicks on one of them, the other one have to 
> disappear. It seems quite simple but i would like to see some examples 
> around the net.
I use this CSS:

.wicket_orderDown
{
    background-image: url(../images/arrow_down.png);
}

.wicket_orderUp
{
    background-image: url(../images/arrow_up.png);
}

.wicket_orderDown, .wicket_orderUp
{
    margin-right: 8px;
}

.wicket_orderDown *, .wicket_orderUp *
{
    background-image: none;
}

You can found these images on Wicket package.


Adriano


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org