Methods
The PanelMenu class provides methods grouped into three categories:
Core Methods build the basic structure of your menu:
site()— Add the site entrypage()— Add a page linkarea()— Add a built-in panel areaseparator()— Add a visual divider
Advanced Methods let you create custom entries:
custom()— Fully custom menu entrydialog()— Entry that opens a dialogdrawer()— Entry that opens a drawercreatePage()— Shortcut for "create page" dialogs
Active State Methods control menu highlighting:
currentCallback()— Highlight on specific pathscurrentExcluding()— Highlight everywhere except specific paths