Select to view content in your preferred language

Sidebar window collapsible when another is opened?

425
2
Jump to solution
10-16-2023 11:53 AM
WilsonLee
Occasional Contributor

Hello all,

I have set up a project with a sidebar containing the First (left) and Second (bottom) windows. Currently, if I have Pane A opened and then click to show the bottom table, the bottom pane is placed below Pane A.

Is it possible that when I open Pane B, Pane A will collapse/minimize, and vice versa?

thanks!!!

W

WilsonLee_0-1697482038611.png

 

0 Kudos
1 Solution

Accepted Solutions
JeffreyThompson2
MVP Regular Contributor

Auto-closing/opening a sidebar is not an option in Online/Enterprise versions. In Developer Edition, use the following code.

// Open a sidebar where widget_id is the id of the sidebar widget.
getAppStore().dispatch(appActions.widgetStatePropChange('widget_47',
    'collapse',
    true
))

//Close a sidebar where widget_id is the id of the sidebar widget.
getAppStore().dispatch(appActions.widgetStatePropChange('widget_47',
    'collapse',
    false
))
GIS Developer
City of Arlington, Texas

View solution in original post

0 Kudos
2 Replies
JeffreyThompson2
MVP Regular Contributor

Auto-closing/opening a sidebar is not an option in Online/Enterprise versions. In Developer Edition, use the following code.

// Open a sidebar where widget_id is the id of the sidebar widget.
getAppStore().dispatch(appActions.widgetStatePropChange('widget_47',
    'collapse',
    true
))

//Close a sidebar where widget_id is the id of the sidebar widget.
getAppStore().dispatch(appActions.widgetStatePropChange('widget_47',
    'collapse',
    false
))
GIS Developer
City of Arlington, Texas
0 Kudos
WilsonLee
Occasional Contributor

thanks for the info : )

0 Kudos