Hi, I have replaced the jstree component in my application with MenuList, which works great except for one small issue. I can’t collapse a “container” item by default. I tried setting the open property of the item to false as documented, but it doesn’t seem to have any effect.
Complete, minimal, self-contained example code that reproduces the issue
import panel as pn
import panel_material_ui as pmui
pn.extension()
list_menu = pmui.MenuList(
items=[
{
'label': 'Home',
'icon': 'home',
'secondary': 'Overview page',
'open': False,
'items': [
{'label': 'Welcome', 'icon': 'handshake'},
{'label': 'Getting Started', 'icon': 'rocket'}
]
},
],
dense=True,
)
list_menu.servable()