jsfprimefacestreetable

How to change icon of TreeTable in Primefaces?


I have simple treeTable. http://www.primefaces.org/showcase/ui/treeTable.jsf I want to change expand and collapse icon of this treeTable. How can I do that?


Solution

  • If you want to use custom icons (images), override the following CSS classes for their respective uses, on the treetable:

    If you want to use more modern fontAwesome 'icons', see Change icon from jQuery UI to FontAwesome in PrimeFaces