Esri / calcite-maps

A Bootstrap theme for designing, styling and creating modern map apps.
http://esri.github.io/calcite-maps/samples/index.html
Apache License 2.0
239 stars 173 forks source link

How to listen to events of calcite-maps #217

Open codingmiao opened 5 years ago

codingmiao commented 5 years ago

For example, I want to do something when I open/close the panel. Can you provide a demo?

gisfinder commented 4 years ago

Set id on panel div , then to add event listener on click of the div. I get it by doing so.

pmacMaps commented 4 years ago

I think you might be able to use the collapse-events to hook into the panels opening/closing.

These events fire when the show and hide method is called. I think these might be the methods that fire when a panel is opened and closed, respectively.