Your listener id (must be unique)
Your listener function
// log a message in the console when the side panel width changes
JMap.Application.Event.UI.on.sidePanelWidthChanged(
"custom-side-panel-width-changed",
params => console.log(`New panel width ${params.width}"`)
)
JMap.Application.Event.UI.on.sidePanelWidthChanged
This event is triggered when the side panel width changes.