The AutoComplete component is exactly what I need, with it being an input field offering suggestions based on the typed text. However, I have a nested data structure like
const nestedData = [
{
text: 'Furniture',
items: [{ text: 'Tables & Chairs' }, { text: 'Sofas' }, { text: 'Occasional Furniture' }],
},
{
text: 'Decor',
items: [{ text: 'Bed Linen' }, { text: 'Curtains & Blinds' }, { text: 'Carpets' }],
},
];
Is it possible to show this? Maybe using the DropdownTree or TreeView component with `itemRender`?
Actually I will have 3 levels of nested data:
const nestedData = [ { text: 'Furniture', items: [{ text: 'Tables & Chairs', items: [{text: 'Pilows'}] }, { text: 'Sofas', items: [{text: 'Blankets'}] }, { text: 'Occasional Furniture' }], }, { text: 'Decor', items: [{ text: 'Bed Linen', items: [{text: 'Rugs'}] }, { text: 'Curtains & Blinds' }, { text: 'Carpets' }], }, ];