TreeNode folder without children #7307
Unanswered
melihcoban
asked this question in
Q&A
Replies: 1 comment
-
Define [
{
label: 'src',
value: 'src',
children: [
{
label: 'components',
value: 'src/components',
children: [
{ label: 'Accordion.tsx', value: 'src/components/Accordion.tsx' },
{ label: 'Tree.tsx', value: 'src/components/Tree.tsx' },
{ label: 'Button.tsx', value: 'src/components/Button.tsx' },
],
},
{
label: 'empty folder',
value: 'empty',
nodeProps: { isEmptyFolder: true },
children: [],
},
],
},
] Then reference |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using Tree component and hook to create a file tree based component. Can I show a node without children as an empty folder?
Empty folder is not rendering on the screen this way. Thanks for help.
Beta Was this translation helpful? Give feedback.
All reactions