开发者

Richfaces, sortable datatable, sort icons

is there a way to change the sort icons of the datatable?

I know, it is possible to set the tag开发者_JS百科 attribute sortIcon for the rich:column but this only replaces the icon which is set at the generated <img> tag. There seems no way to change the align of this img or the size.


You can redefine the css class .rich-sort-icon.

For example try playing with the float css attribute.


Icon images can be changed through sortIconAscending, sortIconDescending and sortIdon attributes of the rich:column tag.

The disadvantage is that this has to be done for every single column that has sorting. However, an abstraction facelet may be created that contains these attributes.

Then css class rich-sort-icon can be used to style where the first thing should be resetting height and weight to auto.

Removing of the default sort icon is not possible on Richfaces 3.3. A transparent image can be used to "remove" it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜