<?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 Hiding a div in a widget in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/hiding-a-div-in-a-widget/m-p/1018176#M20199</link>
    <description>&lt;P&gt;I am trying to hide a div in my Measurement widget but my attempts have resulted in breaking the widget entirely. I have a div&amp;nbsp;&lt;STRONG&gt;distanceMeasure&amp;nbsp;&lt;/STRONG&gt;and I want to hide it. How do I do it? Where does the code go in the widget.js file?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 23:16:40 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-01-19T23:16:40Z</dc:date>
    <item>
      <title>Hiding a div in a widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/hiding-a-div-in-a-widget/m-p/1018176#M20199</link>
      <description>&lt;P&gt;I am trying to hide a div in my Measurement widget but my attempts have resulted in breaking the widget entirely. I have a div&amp;nbsp;&lt;STRONG&gt;distanceMeasure&amp;nbsp;&lt;/STRONG&gt;and I want to hide it. How do I do it? Where does the code go in the widget.js file?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 23:16:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/hiding-a-div-in-a-widget/m-p/1018176#M20199</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-19T23:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding a div in a widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/hiding-a-div-in-a-widget/m-p/1018327#M20205</link>
      <description>&lt;P&gt;What do you mean it breaks the widget? What code are you using to hide that div?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 14:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/hiding-a-div-in-a-widget/m-p/1018327#M20205</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-01-20T14:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding a div in a widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/hiding-a-div-in-a-widget/m-p/1018601#M20210</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous User&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you could attach your code, it would be easier for us to assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generically speaking, if you had a div with id "distanceMeasure" declared in your html, you can hide the div like this in JS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var selectedDiv = dojo.byId(divId);
if(selectedDiv) {
   selectedDiv.style.display = "none";
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;to show the same div, you can then call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;selectedDiv.style.display = "block";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Derrick&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 06:12:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/hiding-a-div-in-a-widget/m-p/1018601#M20210</guid>
      <dc:creator>DerrickWong</dc:creator>
      <dc:date>2021-01-21T06:12:36Z</dc:date>
    </item>
  </channel>
</rss>

