jstree icon indicating copy to clipboard operation
jstree copied to clipboard

How to Display File icon for Files

Open vasuvandla opened this issue 1 year ago • 1 comments

Dear jsTree Team,

I'm trying to display file icon for file under folders in jsTree. I'm unable to get sample code . Kindly help at the earliest .

Thanks in advance, Sreenivasulu

vasuvandla avatar May 06 '24 11:05 vasuvandla

Hello @vasuvandla Sreenivasulu, I am a jstree user too. Have you tried the “types” plugin? Jstree 3 documentation should have example using types to influence icon. Thanks for the info.

peternoges avatar May 06 '24 15:05 peternoges

There are multiple demos of the types plugin as suggested by @peternoges (thank you) and you can also use the icon property and set individual icons using your datasource.

vakata avatar Sep 03 '24 06:09 vakata