When displaying data in a fancytree
tree structure I want long strings to be displayed as follows. The first 24 characters should be shown and then an ellipsis like ("apple ... ") and on hover it should show the complete string in a tool tip.
Is there a efficient way of constructing our desired UI elements? I have a json data in the proper structure that I need to construct the fancytree.