How can I change NearMe Widget's search Header text? The widget comes with default text,' Search an address or locate on map'. I would like to add more descriptive text on the header.
Thanks,
SJ
Solved! Go to Solution.
SJ,
In the widgets nls folder find the strings.js and change the text for the searchHeaderText property.
SJ,
In the widgets nls folder find the strings.js and change the text for the searchHeaderText property.
Robert,
It worked perfectly. Is there anyway that I can expand the textbox size to wrap texts? The header only displays one line of text. I have at least two to three lines of texts which will be displayed on a smart phone screen.
Thanks,
SJ
SJ,
In the widgets css style.css there is this css rule of the header:
.jimu-widget-nearme .esriCTSearchHeader
{
padding: 0px 0px 10px 0px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 12px;
color: #000000;
font-weight: normal;
}
Line 4 is the part that prevent word wrapping. Try changing that to normal or pre
Robert,
Changing white-space:nowrap to 'white-space: normal;' worked perfectly by allowing word wrapping to the search header textbox.
Thanks,