iannbing / react-simple-tree-menu

A simple React tree menu component
MIT License
137 stars 48 forks source link

Is it possible to wrap elements of the same level? #184

Open meneman opened 3 years ago

meneman commented 3 years ago

Hi,

I know this is more of an question than an issue, but is it possible to have a div wrap all consecutively appearing elements of the same level?

iannbing commented 3 years ago

Hi, not sure if I get your question. Since the items are at your disposal and item has level, you can write your own logic in the map function. But it seems to me more like a data or UI design challenge (instead of trying to write complex rendering logic, maybe format the data in a way that you can easily present with this library. Hope it helps.