Hello Can any one help me to change the structure of that array from materialize path to this structure
[
{name : 'Electronic' , path: ''},
{name :'Mobile' , path :'/Electronic'},
{name :'LG' , path :'/Electronic/Mobile'},
{name :'S330' , path :'/Electronic/Mobile/LG'},
{name :'Samsung' , path :'/Electronic/Mobile'},
{name :'Galaxy 10' , path :'/Electronic/Mobile/Samsung'},
{name : 'Laptop' , path: '/Electronic'},
{name :'HP' , path :'/Electronic/Laptop'},
{name :'Pavilion 2000' , path :'/Electronic/Mobile/HP'},
{name :'DELL' , path :'/Electronic/Laptop'},
{name :'D2000' , path :'/Electronic/Mobile/DELL'},
{name : 'Clothes' , path: ''},
{name :'Men' , path :'/Clothes'},
{name :'Socks' , path :'/Clothes/Men'},
{name :'Pants' , path :'/Clothes/Men'},
{name :'Women' , path :'/Clothes'},
{name :'Skirt' , path :'/Clothes/Women'},
{name :'Hat' , path :'/Clothes/Women'},*
]
[
{
name:'Electronic', children:[
{name:'Mobile', children:['LG', 'Samsung']},
{name:'Laptop', children:['HP', 'DELL']}
]
},
{
name:'Clothes', children:[
{name:'Men', children:['Socks', 'Pants']},
{name:'Women', children:['Skirt', 'DELL']}
]
},
]
or if this is not a good idea can any body help me to figure out how to work with nested menu for materialize path please i get stack please any help ?