Interact with Kibana in IFrame and Host application

You can inspect the parameters generated when sharing a dashboard to pass some state downstream. However, remember that this is not officially supported and may change anytime as with any other implementation detail.

Check this and this similiar discussions. This is a recurrent topic so you may find other threads as well.