Customizing the default popuptemplate window

2543
8
Jump to solution
01-24-2017 11:47 AM
EvonFranklin
New Contributor III

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
New Contributor III

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
New Contributor III

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

0 Kudos
Drew
by
Occasional Contributor III

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
New Contributor III

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

0 Kudos
Drew
by
Occasional Contributor III

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
New Contributor III

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

0 Kudos