Hi esri community! I am trying currently trying to use the calcite-action-bar to open/close a calcite-panel using calcite-flow. So far i do not have much luck in doing so. Is there a button i need to create in the action bar container and write a JS code for this sort of interactivity? if so, how? See below for the script under the <body>....</body> section of my html script:-
Thank you!
Solved! Go to Solution.
Hi @DerrickLim, I apologize for the delayed response. In the sample below, clicking on the "info" action will toggle the panel. Let me know if you have any additional questions!
Hi @DerrickLim, I apologize for the delayed response. In the sample below, clicking on the "info" action will toggle the panel. Let me know if you have any additional questions!
Hi Ben, no worries and thanks for the solution. It works! Also, do you have any idea how to encapsulate shell panels into one single panel when i click the other tabs on the left? Currently mine is resulting with two panels with the action button enabled which is not what i am looking for. thanks
I'm not sure how you set that up, but if you have two separate panels then you should make sure to collapse one when you open the other.
To follow up on this question, I just released a tutorial that will help with this workflow:
https://developers.arcgis.com/calcite-design-system/tutorials/create-a-mapping-app/