A code snippet for "tree structure" in panel