require(["dojo/dom-attr","dojo/query"], function(domAttr,djQuery){ navToolbar = new Navigation(map); // I put this after I initialized the toolbar var zoomInDiv = djQuery(".esriSimpleSliderIncrementButton"); domAttr.set(zoomInDiv[0],"title","Zoom in"); var zoomOutDiv = djQuery(".esriSimpleSliderDecrementButton"); domAttr.set(zoomOutDiv[0],"title","Zoom out"); });
Is there any way to customize tooltips for the Navigation Toolbar? You can for the Draw toolbar per this thread: http://forums.arcgis.com/threads/79780-change-draw-toolbar-tooltip-text-bad-documentation?highlight=tooltipAnd I saw the thread for customizing a general tooltip here: http://forums.arcgis.com/threads/51063-Customise-cursor-tooltipBut I'd really like to be able to customize tooltips for the various tools on the Nav toolbar. Any ideas on the best way to go about it?
require(["dijit/Tooltip", "dojo/domReady!"], function(Tooltip){ new Tooltip({ connectId:["zoomin"], label:"Zoom in" }); new Tooltip({ connectId:["zoomout"], label:"Zoom out" }); });
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.