How to change tooltips for the Enhanced Search Widget?

645
2
Jump to solution
01-17-2018 06:44 AM
MartinOwens1
Occasional Contributor II

I would like to change the tooltip for the graphical point select "Click to add a point" in the Enhanced Search widget. I noticed in the console that it's using the esriMapTooltip but can't seem to find where that is being set.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Martin,

  Those strings are controlled by the API so you have to change then using the APIs default string module.

Add the require (line 3 and line 11) Then change the string (line 19):

....
    'dojo/topic',
    'dojo/i18n!esri/nls/jsapi',
    'jimu/dijit/CheckBox',
    'dijit/form/DropDownButton',
    'dijit/Menu',
    'dijit/MenuItem',
  ],
  function (
....
    topic, esriBundle
  ) { /*jshint unused: true*/
....

      postCreate: function () {
        this.inherited(arguments);
        ....
        this.own(topic.subscribe("appConfigChanged", lang.hitch(this, this._onAppConfigChanged)));
        esriBundle.toolbars.draw.addPoint = "blah blah";
      },

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Martin,

  Those strings are controlled by the API so you have to change then using the APIs default string module.

Add the require (line 3 and line 11) Then change the string (line 19):

....
    'dojo/topic',
    'dojo/i18n!esri/nls/jsapi',
    'jimu/dijit/CheckBox',
    'dijit/form/DropDownButton',
    'dijit/Menu',
    'dijit/MenuItem',
  ],
  function (
....
    topic, esriBundle
  ) { /*jshint unused: true*/
....

      postCreate: function () {
        this.inherited(arguments);
        ....
        this.own(topic.subscribe("appConfigChanged", lang.hitch(this, this._onAppConfigChanged)));
        esriBundle.toolbars.draw.addPoint = "blah blah";
      },
0 Kudos
MartinOwens1
Occasional Contributor II

Thanks Robert!

0 Kudos