https://github.com/brianmcleer/sidebar-custom-widget
A customized version of Esri's Sidebar widget for ArcGIS Experience Builder. It keeps everything the stock Sidebar does and adds automatic expansion so a collapsed sidebar opens itself when a table is shown, which keeps the Table widget visible inside the sidebar instead of hidden behind a collapsed panel.
Features
- Auto-expand on table open. When a collapsed sidebar contains a Table widget and a user runs "Add to table" or "View in table", the sidebar expands automatically so the table is visible.
- Auto-expand for widget controllers. A collapsed sidebar also expands when a widget inside a Widget Controller is opened, so the controller content is not stuck behind a collapsed panel.
- Everything from the stock Sidebar widget: two configurable panels (FIRST and SECOND), fixed layouts, the toggle button with its configurable colors and border, and the toggle and open message actions.
Changelog:
6/26/26:
Updated the Sidebar Custom widget for Experience Builder 1.21. This release resolves TypeScript editor errors related to React component typing, SVG and Interact declarations, and Experience Builder globals. No runtime functionality was changed.
6/26/26:
- Auto-resize for tools and tables. The sidebar can widen to a size you set while a tool or table is open, then go back to its normal width when it closes. It respects a manual resize, so it won't override a width you set yourself.
- Peek on hover. Hovering the collapsed edge briefly reveals the sidebar, and it re-collapses when you move away. Good for a quick glance without fully opening it.
- Update badge. A small dot shows on the toggle button when the collapsed content changes while the sidebar is closed, so users notice new results. It clears once the sidebar is opened.
- Pin and close panel header. An optional header bar on the panel adds a pin button that keeps the sidebar open and holds off the auto-collapse behaviors until you unpin, plus a close button.
- Published expand/collapse message. The sidebar can send an "expanded" or "collapsed" message that other widgets can react to through a standard message action.
- URL deep-linking. The open or collapsed state can be saved in the URL and restored on load, so a shared or bookmarked link opens in the same state.
- Everything new is off by default and set in the widget's Behavior settings, so existing apps don't change until you turn something on.
2/23/26:
- Widget now supports auto expansion for widget controller or view/add in table.
- Have collapsed sidebars expand when using "Add to table" or "View in table"" to show Table widget within sidebar. Also supports auto-expansion for widget controllers.
Comes from an idea and great solution by @JeffreyThompson2 at The Automatically Opening Attribute Table.