Select to view content in your preferred language

Show / Hide Window onclick

714
2
03-20-2023 07:04 AM
GDipublisher
New Contributor II

I'm having difficulty using the native Window option in ExB, as I want to show it onclick, then after user selects something from the popup, then to close it and get the user selected input. 

So far I tried many ways to programmatically manage it, but as far as I see, it cannot be selected because it doesn't exist if its not linked to a page on start. 

I tried the sample, but it wasn't meant towards a Window, only side bar and controller widget. 
control-the-widget-state/ 

I've tried to access it through the global variables window. _widgetManager  and through 

this.state.jimuMapView but no luck. An example would be great.
0 Kudos
2 Replies
TonghuiMing
Esri Regular Contributor

Have you tried the anchored window? That is designed to appear next to the linked element, like a button widget:

TonghuiMing_0-1680853710383.png

 

0 Kudos
GDipublisher
New Contributor II

Thank you for the reply, however I was searching for an ExB source way to do this, through JS or TSX. 

0 Kudos