<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tooltip not coming for Draw point tool in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/tooltip-not-coming-for-draw-point-tool/m-p/825003#M7706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shaikh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;It sounds like you have not changed enough code and css rules to make your widget distinct from the Identify widget. That is why the identify widget css rule is affecting your widget. Also you may want to check your manifest.json and the Widget.html to see if your widget is still pointing to "widgets/Identify/abc".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the tooltip portion of your question. I do not completely follow your issue but if you look at other widgets that change the esriBundle for the draw you will see that the original tooltip text is saved to a var in the widget so that it can be restored when your widget closes (don't just set it to "").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2016 13:44:27 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-08-25T13:44:27Z</dc:date>
    <item>
      <title>Tooltip not coming for Draw point tool</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/tooltip-not-coming-for-draw-point-tool/m-p/825002#M7705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i created a new widget in WAB, Which is more or less similar to Identify widget. By default point tool&amp;nbsp;is active for the new widget as Identify widget but the background selection color is not same as Identify widget. PFB image for the same.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="217617" alt="New widget after initializing" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/217617_1.png" style="height: 203px;" width="267" /&gt;&lt;/P&gt;&lt;P&gt;I have changed the Name of the files and base class name in widget.js for new widget. Also i have changed the tool-tip for &amp;nbsp;cursor using the below code in&amp;nbsp;_initInflowDrawBox method in js file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;esriBundle.toolbars.draw.addPoint = "Click to identify a layer";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;While opening first time after application loaded, I am &amp;nbsp;getting the tool-tip. But when i toggled&amp;nbsp;with any other widget it is showing blank tool-tip. I set the empty string in "&lt;SPAN&gt;onMinimize&lt;/SPAN&gt;" tab and adding the value on "&lt;SPAN&gt;onMaximize&lt;/SPAN&gt;" tab for tool-tip. After&amp;nbsp;click on the map, i am getting the tool-tip.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt; _addThemeFixes: function () {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; /*Workaround for the LanunchPad theme not firing onClose and onOpen for the widget*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; if(this.appConfig.theme.name === "LaunchpadTheme"){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; var tPanel = this.getPanel();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; if(tPanel){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; aspect.after(tPanel, "onClose", lang.hitch(this, this.onClose));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; aspect.after(tPanel, "onOpen", lang.hitch(this, this.onOpen));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; /*end work around for LaunchPad*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; /*Workaround for TabTheme moregroup not calling onClose and onOpen when the SidebarController is minimized*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; if(this.appConfig.theme.name === "TabTheme"){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; var sidebarWidget = this.wManager.getWidgetsByName('SidebarController');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; if (sidebarWidget[0]) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; aspect.after(sidebarWidget[0], "onMinimize", lang.hitch(this, this.onClose));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; aspect.after(sidebarWidget[0], "onMaximize", lang.hitch(this, this.onOpen));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; }&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;onOpen: function () {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; if(this.graphicsLayer){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; this.graphicsLayer.clear();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; if(this.autoactivatedtool){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; this.drawBox.activate(this.autoactivatedtool.toUpperCase());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;STRONG&gt; esriBundle.toolbars.draw.addPoint = "Click to identify a layer";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt;},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt; onClose: function () {&lt;BR /&gt; this._hideInfoWindow();&lt;BR /&gt; this.drawBox.deactivate();&lt;BR /&gt; this.graphicsLayer.clear();&lt;BR /&gt; &lt;STRONG&gt;esriBundle.toolbars.draw.addPoint ="";&lt;/STRONG&gt;&lt;BR /&gt; this.infoWinMouseOver.remove();&lt;BR /&gt; this.infoWinMouseOut.remove();&lt;BR /&gt; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;PFB image for the same:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;IMG __jive_id="217618" alt="" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/217618_2.png" style="width: 460px; height: 233px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;The same issue is happening with identify widget also where i am adding the tooltip on "&lt;SPAN&gt;onMaximize&lt;/SPAN&gt;" tab and empty string in "&lt;SPAN&gt;onMinimize&lt;/SPAN&gt;" tab event&amp;nbsp;&amp;nbsp;. Also when i toggled the new widget with Identify widget, the background color got changed( please see the above image).when debugging the code, While opening the identify widget, the "&lt;SPAN&gt;onOpen" method runs in 2 plcaes, First it execute in widget.js of identify widget and then it went to widget.js of new widget.&lt;/SPAN&gt;&amp;nbsp; PFB image for identify widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;IMG __jive_id="217632" alt="" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/217632_3.png" style="height: 274px;" width="485" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt; I am attaching the widget.js file for new widget. please let me know if any change is required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Shaikh&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 06:02:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/tooltip-not-coming-for-draw-point-tool/m-p/825002#M7705</guid>
      <dc:creator>ShaikhRizuan</dc:creator>
      <dc:date>2016-08-25T06:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip not coming for Draw point tool</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/tooltip-not-coming-for-draw-point-tool/m-p/825003#M7706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shaikh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;It sounds like you have not changed enough code and css rules to make your widget distinct from the Identify widget. That is why the identify widget css rule is affecting your widget. Also you may want to check your manifest.json and the Widget.html to see if your widget is still pointing to "widgets/Identify/abc".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the tooltip portion of your question. I do not completely follow your issue but if you look at other widgets that change the esriBundle for the draw you will see that the original tooltip text is saved to a var in the widget so that it can be restored when your widget closes (don't just set it to "").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 13:44:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/tooltip-not-coming-for-draw-point-tool/m-p/825003#M7706</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-25T13:44:27Z</dc:date>
    </item>
  </channel>
</rss>

