Select to view content in your preferred language

Infowindow Popup Window Controls

1181
3
06-18-2011 10:48 AM
ChristopherCouper
Emerging Contributor
How can I control the Window Controls in a popup?  For example I only want the close (X) item and not the maximize item in the window bar?
0 Kudos
3 Replies
BrettLord-Castillo
Deactivated User
One very simple way to do this is to set the style on the elements you do not want to appear. You can do this by calling esri.hide() on the main containing div element for that element. I'll see if I can find what that call would be for the minimize button.
0 Kudos
ChristopherCouper
Emerging Contributor
Thank you in advance. Its actually the maximize button that needs to be hidden 🙂
0 Kudos
VernWolfley
Occasional Contributor
You can control this through the CSS -

.esriPopup .titleButton.maximize {
     display: none;
}


hope that helps