<?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: Disable Widget Dragging on the Dashboard Theme in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/disable-widget-dragging-on-the-dashboard-theme/m-p/815138#M6929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it done by changing the D&lt;SPAN&gt;ragListener class in the Golden Layout.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the goldenlayout.js file, the script creates an e.utils.DragListener. On the onMouseDown function I added the following condition:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;t&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;toElement&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;className &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"lm_drag_handle"&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this, the drag doesn't listens the event while clicking on the header of the widgets, and will still work when trying to resize the widgets area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2019 13:39:27 GMT</pubDate>
    <dc:creator>jonataspovoas</dc:creator>
    <dc:date>2019-04-03T13:39:27Z</dc:date>
    <item>
      <title>Disable Widget Dragging on the Dashboard Theme</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/disable-widget-dragging-on-the-dashboard-theme/m-p/815137#M6928</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'm building an aplication with the Web AppBuilder Developer, using the Dashboard Theme, and my client requested that I disable the capability to drag widgets to change the application design during execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2019 13:34:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/disable-widget-dragging-on-the-dashboard-theme/m-p/815137#M6928</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2019-04-01T13:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Widget Dragging on the Dashboard Theme</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/disable-widget-dragging-on-the-dashboard-theme/m-p/815138#M6929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it done by changing the D&lt;SPAN&gt;ragListener class in the Golden Layout.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the goldenlayout.js file, the script creates an e.utils.DragListener. On the onMouseDown function I added the following condition:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;t&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;toElement&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;className &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"lm_drag_handle"&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this, the drag doesn't listens the event while clicking on the header of the widgets, and will still work when trying to resize the widgets area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 13:39:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/disable-widget-dragging-on-the-dashboard-theme/m-p/815138#M6929</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2019-04-03T13:39:27Z</dc:date>
    </item>
  </channel>
</rss>

