searchisko / search.jboss.org-ui

Web UI for search.jboss.org
Apache License 2.0
5 stars 4 forks source link

[Filtering] ListItemView can use customized ListItem renderer #89

Closed lukas-vlcek closed 10 years ago

lukas-vlcek commented 10 years ago

List item can contain more than just a plain text. It can contain also icons, nested HTML elements (for example with highlighting). This feature adds option to implement and use custom renderer for each list.

Since the content of individual list items can be driven by data requests from REST server a special care needs to be taken when using HTML from external sources to avoid XSS attacks.

lukas-vlcek commented 10 years ago

More detailed docs can be found in relevant readme. Especially, new ListItemRenderer interface and new renderer option in lists configuration of ListController.