AnsweredAssumed Answered

How to customize mouse over tip of Select widget

Question asked by huangs3 on Sep 17, 2020
Latest reply on Sep 18, 2020 by huangs3

Hi! Do you have idea about how to change the mouse over tip on the map, for the out-of-box Select widget?

 

As the attached image shows, when I use point geometry to select features on the map and turn on the "Select" button, I will see "Click to add a point" mouse over tip message. I want to change this message to another, but couldn't find a way to do that.

 

I am using Web AppBuilder Version 2.17.

 

I attempted to do it by searching the text "Click to add a point" in all the source code of the Web AppBuilder, including the site that I have created inside, and then changed all the strings that I can find. However, it doesn't work. I also delete the web browser cache, but doesn't help. I attempted to debug into the Select widget, and find that this mouse over tip is toggled on and off by the FeatureSetChooserForMultipleLayers.js module at line 165 (see screenshot). When I clicked the Select button, the jimuUtils.simulateClickEvent function is triggered. If I comment out this function call, the mouse over tip will not work. However, I couldn't go further to dig out how the text is setup, because I encounter the minified code soon after.

 

Seems I am stuck now. Do you give me some idea how to customize the text of the mouse over tip?

 

The reason I want to figure this out is because I am using the FeatureSetChooserForMultipleLayer.js to develop a customized widget, such that I need to change the text that comes with it.

 

Thank you!

Attachments

Outcomes