Adding tooltips on custom buttons
Hi,
I want to add tooltips on custom buttons (inside a custom region) but they don't show up on the screen.
I've used the same syntax as in the Toolbar Module but for some reason, it doesn't work?
I've double checked the Toolbar buttons on my browsers (Chrome & Firefox) and the tooltips are showing up just fine.
Here is a example of the code used in our project:
{
"moduleName": "ZoomControl",
"moduleType": "geocortex.essentialsHtmlViewer.mapping.modules.zoomcontrol.ZoomControlModule",
"configuration": {},
"views": [
{
"id": "GeolocateView",
"viewModelId": "GeolocateViewModel",
"visible": true,
"type": "geocortex.essentialsHtmlViewer.mapping.modules.zoomcontrol.GeolocateView",
"tooltip": "@language-tooltip-geolocate-view",
"markup": "Mapping/modules/ZoomControl/GeolocateView.html",
"region": "ZoomControlsGroup1",
"configuration": {}
}
],
"viewModels": [
{
"id": "GeolocateViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.zoomcontrol.GeolocateViewModel",
"configuration": {}
}
]
},
Thanks!
Stephan
-
We've tried to override the title propertie through a CSS file but it's not working because the title propertie is actually written inside the Div tag of the HTML file.
Is it possible to decompile the encrypted HTML file (located in the Mapping.js file) so we can add the tooltip info and recompile them again after?
Thank you!
Stephan
0 -
Hello Jason,
I've used my own custom modules with references to the existing implementations (option 2) and it's working!
Thanks again!
Stephan
0 -
This may be a stupid question, but where do I find:
Mapping/modules/ZoomControl/GeolocateView.html
I can't find this file anywhere.. Nor can I find the Mapping/Modules folders.
0
Please sign in to leave a comment.
Comments
3 comments