<?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: New widget with Content that Changes Best Practice in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585845#M15592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where would I set that rule? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2017 18:17:13 GMT</pubDate>
    <dc:creator>KarenRobine</dc:creator>
    <dc:date>2017-02-10T18:17:13Z</dc:date>
    <item>
      <title>New widget with Content that Changes Best Practice</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585843#M15590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've setup 2 widgets (Web AppBuilder Developer Edition) that need to communicate with each other (ie. Widget1 and Widget2). I only want 1 open at a time.&amp;nbsp; Widget1 is set to openAtStart.&amp;nbsp; Then, when I select a point on the map, I want Widget1 to close, and Widget2 to open. Then, when I close Widget2, I want Widget1 to reopen. I pretty much have this concept working now, except I have a button for Widget2, so you can basically open it, separately&amp;nbsp; from Widget1 (which I don't want).&amp;nbsp; So what I want to do is have only 1 button to control all of this flow.. I'm trying to figure out the best way to do this. So some options I've come up with are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Option1:&amp;nbsp; Place all code in 1 widget and control the showing and hiding of the content using code. I'm not a huge fan of this, as it ends up placing separation of functionality within 1 widget... But I can use&amp;nbsp;multiple dijits here to handle the code and separate the code that way.. So maybe option 1 is a good way to handle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Option2:&amp;nbsp; Figure out how to not display my second button associated with Widget2.&amp;nbsp; I'm not sure how to do this, and maybe it's not good practice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Option3: Is there possibly a theme out there that supports what I'm trying to accomplish, or should I build a new theme for this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts on how to best handle this? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 17:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585843#M15590</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2017-02-10T17:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: New widget with Content that Changes Best Practice</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585844#M15591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If widget two will only ever be opened from widget one then you can just add a css rule &amp;nbsp;display: none for the widget 2 placeholder (button).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 18:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585844#M15591</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-02-10T18:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: New widget with Content that Changes Best Practice</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585845#M15592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where would I set that rule? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 18:17:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585845#M15592</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2017-02-10T18:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: New widget with Content that Changes Best Practice</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585846#M15593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Is the widget in an onscreen widget placeholder or part of a controller widget like the header controller?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 18:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585846#M15593</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-02-10T18:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: New widget with Content that Changes Best Practice</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585847#M15594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I would add to the apps theme common.css if I wanted to hide the 3rd widget on screen place holder:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;#dijit__WidgetBase_2&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; display&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; none&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:12:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585847#M15594</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T01:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: New widget with Content that Changes Best Practice</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585848#M15595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mine&amp;nbsp;is actually a "Header Controller" type of widget.&amp;nbsp; But I just did the following which worked:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #3f7f7f; font-size: small;"&gt;div[settingid=&amp;lt;MyWidgetSetttingId&amp;gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; {&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f007f; font-size: small;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #2a00e1; font-size: small;"&gt;none&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks for the idea.&lt;/P&gt;&lt;P&gt;I'm still thinking about pursuing option 1 above. In my mind, I think if you setup a widget, it should be designed to run independently of other widgets. So still deciding whether mine would ever&amp;nbsp;run that way. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 15:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/new-widget-with-content-that-changes-best-practice/m-p/585848#M15595</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2017-02-13T15:43:23Z</dc:date>
    </item>
  </channel>
</rss>

