I want to show the embedded content when I select a layer from category selector. and hide it and not even want to see this window when I unselect the category or select other category.
Please guide me about this
There is no way to accomplish what you're trying to do. A dashboard widget is meant to always be visible, and its contents controlled dynamically. Your category selector cannot control the layout of the dashboard itself.