InfoWindow headerContent renders html as string #298
-
Beta Was this translation helpful? Give feedback.
Answered by
HusamElbashir
Dec 1, 2024
Replies: 2 comments
-
Looks like there is a slight difference in the way
The difference being that
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mikechalmers
-
You're totally right, that worked like a charm. Thank you for your speedy, helpful answer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like there is a slight difference in the way
content
andheaderContent
behave. If you refer to the docs:content
: Content to display in the InfoWindow. This can be an HTML element, a plain-text string, or a string containing HTML.headerContent
: The content to display in the InfoWindow header row. This can be an HTML element, or a string of plain text.The difference being that
content
can take a string containing HTML butheaderContent
cannot. You're going to have to use an actual HTML element here: