I want to increase column width in AjaxFallbackDefaultDataTable.
first I tried
columns.add(new
org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<InfUser>(new
Model<String>("Name and Phone No."),"firstName") {
@Override
public void populateItem(Item<ICellPopulator<InfUser>>
cellItem,
String componentId, IModel<InfUser>
rowModel) {
InfUser infUser=rowModel.getObject();
cellItem.add(new
Label(componentId,WicketApplication.getUserDisplayValue(infUser)));
cellItem.add(new
SimpleAttributeModifier("style", "width: 40px;"));
cellItem.setOutputMarkupId(true);
}
});
I tought this would add style attribute to
<th> tag
but it did not, adding attribute modifier to getHeader method, it did
add the style attribute to the span tag but that is not making any
difference Iam able to increase width only by adding style attribute to
th tag , please tell me how can I add style attribte to th tag ?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/cell-width-AjaxFallbackDefaultDataTable-tp3305714p3305714.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]