开发者

Richfaces, sortable datatable, sort icons

开发者 https://www.devze.com 2022-12-28 02:55 出处:网络
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

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

精彩评论

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