Select to view content in your preferred language

Customizing the default popuptemplate window

2841
8
Jump to solution
01-24-2017 11:47 AM
EvonFranklin
Regular Contributor

Is there a way to not just add my own content to a popup window but totally change the design completely? change the height of the popup etc. Or if not maybe there is a way to override showing the default popup and show a custom one instead?

Tags (1)
1 Solution

Accepted Solutions
RickeyFight
MVP Regular Contributor

I was not able to find anything in the 4.2 Doc yet. I am sure it will be added in the future. 

View solution in original post

8 Replies
RickeyFight
MVP Regular Contributor
EvonFranklin
Regular Contributor

These look good, but will this still work for 4.2?

0 Kudos
RickeyFight
MVP Regular Contributor

I was not able to find anything in the 4.2 Doc yet. I am sure it will be added in the future. 

EvonFranklin
Regular Contributor

Thank you, will be looking out for more on this. For now I am forced to hack up a solution.

0 Kudos
Drew
by
Frequent Contributor

You could just override the CSS and style it the way you want.

Use your browsers development tools to inspect the HTML and see how it is styled.

 

SAMPLE

.esri-popup__header {
    position: relative;
    font-size: 12px;
    align-items: flex-start;
    justify-content: space-between;
    flex: 0 0 auto;
    background-color: #336ba2;
    color: #FFF;
}

Drew

EvonFranklin
Regular Contributor

I tried doing this myself, but the popup ignores my css commands

0 Kudos
Drew
by
Frequent Contributor

Add a !important on the end to force it.

.esri-popup__header {
    position: relative;
    font-size: 10px !important;
    align-items: flex-start;
    justify-content: space-between;
    flex: 0 0 auto;
    background-color: #336ba2 !important;
    color: #FFF !important;
}
0 Kudos
EvonFranklin
Regular Contributor

oh yes, forgot about that part haha I guess that will do for now. Thanks for the tip

0 Kudos