dabeng / OrgChart

It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.
MIT License
2.83k stars 768 forks source link

Custom Icons Support after Font Awesome Icons Removal #695

Closed jxmai closed 1 year ago

jxmai commented 1 year ago

Issue: https://github.com/primefaces-extensions/primefaces-extensions/issues/1050

Our current workaround is to replace fa-folder-open to oci-leader. (https://github.com/primefaces-extensions/primefaces-extensions/issues/1050#issuecomment-1416599132) However, other than oci-leader, there seems no other customized icon exists for parentNodeSymbol.

It would be nice if we have the list of possible customized icons to be used after the font awesome icons removal or the ability to to define our own icons.

melloware commented 1 year ago

I understand removing FontAwesome as a dependency but there should be the ability to plug it back in and use custom icons.

dabeng commented 1 year ago

Hi @jxmai @melloware since version 3.7.0, users are allowed to replace built-in icons with Font Awesome icons. I have created demo on codepen.io for you. https://codepen.io/dabeng/pen/jOezQzy

melloware commented 1 year ago

@dabeng thank you!

jxmai commented 1 year ago

Thanks @dabeng!