Gwyn Evans wrote:
> I'm not sure about Stefan's requirements, but doesn't the
> "table.<class> > thead > tr.headers > th" hierarchy let you target the
> header sufficiently?
e.g. it does not allow me to specify column widths. If every column had
it's id appended as class like:
<th class="column-name">name</th><th class="column-actions">actions</th>
I could set style for column actions to 'width: 1px; white-space:
nowrap' so it occupies the least space.
This is only a simple use case I got into yesterday.
Same goes for filters toolbar and paging toolbar. In order to do any
real customization I had to extend the classed and use AttributeAppender
to set class attribute so the markup is customizable by css.
> public class StyledGoFilter extends GoFilter {
> public StyledGoFilter( String id ) {
> super( id, new Model( "filtruj" ) );
> getGoButton().add( new AttributeAppender( "class", new Model(
> "button" ), ";" ) );
> add( new AttributeAppender( "style", new Model( "width: 1px" ),
> ";" ) );
> }
> }
> public class StyledTextFilter extends TextFilter {
>
> public StyledTextFilter( String id, IModel model, FilterForm form ) {
> super( id, model, form );
> getFilter().add( new AttributeAppender( "style", new Model(
> "width: 99%" ), ";" ) );
> }
>
> }
Of course the code uses 'class' attributes, I have changed it for the
example.
I would like to work with single header/column/input in css instead of
modifying them all at once. Having dynamic class names for every th/td
in columns allows you to target particular cells.
BTW is there any way to change the paging navigator so it uses something
else than "<<" ">>" ? My users say "<< <" gets unreadable.
I'm fairly new to wicket so plase bear my stupidity with patience :)
--
Leszek Gawron
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user