<?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: bootstrap modal problem in WAB in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873272#M13079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;var z = this.map.getZoom();&lt;BR /&gt; z += (z/10);&lt;BR /&gt; z = Math.round(z);&lt;BR /&gt; this.map.setZoom(z);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked, sorry for bugging you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2018 20:22:25 GMT</pubDate>
    <dc:creator>scottmiller10</dc:creator>
    <dc:date>2018-06-08T20:22:25Z</dc:date>
    <item>
      <title>bootstrap modal problem in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873262#M13069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I am having a problem with the bootstrap modal as well. The open modal budget is on the widget, but when I click nothing happens. I've tried using the &amp;lt;a href...&amp;gt; as well the bootstrap button with data-toggle, but neither works. I attached the widget and html files below.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 16:54:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873262#M13069</guid>
      <dc:creator>scottmiller10</dc:creator>
      <dc:date>2018-06-05T16:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: bootstrap modal problem in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873263#M13070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I kindly recommend using the &lt;A href="https://dojotoolkit.org/reference-guide/1.10/dijit/Dialog.html"&gt;Dialog Dijit class&lt;/A&gt;. In this way you avoid overloading your application with external dependencies..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 17:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873263#M13070</guid>
      <dc:creator>Adri2cPérez_Beneito</dc:creator>
      <dc:date>2018-06-05T17:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: bootstrap modal problem in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873264#M13071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So there are many issues in your code.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You do not add script tags and stylesheets inside the widget.html. You are treating the widgets html template like it was a whole html app and not just a markup template as it is suppose to be.&lt;/LI&gt;&lt;LI&gt;Your define array order is mixed up.&amp;nbsp;&amp;nbsp;dojo/domReady! is Always the last item in the array.&amp;nbsp; Because you have it as the 4th from last your Legend and LayerInfos classes is not defined properly.&lt;/LI&gt;&lt;LI&gt;You are trying to do A LOT of your coding inside the postCreate. While this is allowed you might reconsider the widgets life cycle and determine if postCreate is the most appropriate location for all of that.&lt;/LI&gt;&lt;LI&gt;I would not even be considering using BootStrap modal. WAB and dojo has options for dialogs and modal so why convolute your code with Another 3rd party library?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 17:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873264#M13071</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-06-05T17:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: bootstrap modal problem in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873265#M13072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where should I put onClick functions if not in postCreate? By no means do I fully understand the structure of these widgets, so I appreciate your feedback greatly. The only reason I'm using bootstrap is to make my app look a little more phone-friendly.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 17:35:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873265#M13072</guid>
      <dc:creator>scottmiller10</dc:creator>
      <dc:date>2018-06-08T17:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: bootstrap modal problem in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873266#M13073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;postCreate function will be OK if you want the map click handler added as soon as the widget is created. Many time I will wait for the user to activate a button or the widget to be opened before adding an event like this. A more significant issue is that the map click handler is not removed once your widget is closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 17:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873266#M13073</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-06-08T17:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: bootstrap modal problem in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873267#M13074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I could have an onClick that zooms in 10%? I can't find any function in the API to zoom by %.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 19:07:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873267#M13074</guid>
      <dc:creator>scottmiller10</dc:creator>
      <dc:date>2018-06-08T19:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: bootstrap modal problem in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873268#M13075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; this.map.extent.expand(1.1); zooms in 10%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/extent-amd.html#expand" title="https://developers.arcgis.com/javascript/3/jsapi/extent-amd.html#expand"&gt;https://developers.arcgis.com/javascript/3/jsapi/extent-amd.html#expand&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Expands the extent by the factor given. For example, a value of 1.5 will be 50% bigger.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 19:20:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873268#M13075</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-06-08T19:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: bootstrap modal problem in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873269#M13076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;on(this.zoomIn, "click", lang.hitch(this, function(){&lt;BR /&gt; this.map.extent.expand(1.1); &lt;BR /&gt; }));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this didn't work but doesn't throw any errors. Am i using this wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 19:37:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873269#M13076</guid>
      <dc:creator>scottmiller10</dc:creator>
      <dc:date>2018-06-08T19:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: bootstrap modal problem in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873270#M13077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;Sorry Use.&lt;/P&gt;&lt;PRE class="" style="color: #4d4d4d; background: #fafafa; border: 2px solid #dddddd; margin: 0.5em 0.5em 0.5em 0px; padding: 0.5em 0px 0.5em 0.5em;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;this.map.setExtent(this.map.extent.expand(1.1));&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 19:39:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873270#M13077</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-06-08T19:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: bootstrap modal problem in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873271#M13078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason that isn't working either. Is there anything else i could do with map.getZoom and map.setZoom?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 20:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873271#M13078</guid>
      <dc:creator>scottmiller10</dc:creator>
      <dc:date>2018-06-08T20:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: bootstrap modal problem in WAB</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873272#M13079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;var z = this.map.getZoom();&lt;BR /&gt; z += (z/10);&lt;BR /&gt; z = Math.round(z);&lt;BR /&gt; this.map.setZoom(z);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked, sorry for bugging you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 20:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/bootstrap-modal-problem-in-wab/m-p/873272#M13079</guid>
      <dc:creator>scottmiller10</dc:creator>
      <dc:date>2018-06-08T20:22:25Z</dc:date>
    </item>
  </channel>
</rss>

