<?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: Draggable Modal? in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/draggable-modal/m-p/1102226#M42</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;, there is no built in way to drag the modal. You would have to wire something up yourself using a library like&amp;nbsp;&lt;A href="https://interactjs.io/" target="_blank"&gt;https://interactjs.io/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 17:52:38 GMT</pubDate>
    <dc:creator>BenElan</dc:creator>
    <dc:date>2021-09-27T17:52:38Z</dc:date>
    <item>
      <title>Draggable Modal?</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/draggable-modal/m-p/1091470#M37</link>
      <description>&lt;P&gt;Is there a way to allow the users to drag modal across the screen? I tried with the inline css but no success.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 21:43:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/draggable-modal/m-p/1091470#M37</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2021-08-23T21:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Draggable Modal?</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/draggable-modal/m-p/1102226#M42</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;, there is no built in way to drag the modal. You would have to wire something up yourself using a library like&amp;nbsp;&lt;A href="https://interactjs.io/" target="_blank"&gt;https://interactjs.io/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 17:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/draggable-modal/m-p/1102226#M42</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2021-09-27T17:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Draggable Modal?</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/draggable-modal/m-p/1105597#M48</link>
      <description>&lt;P&gt;Dojo has a library for dragging DIVs called&amp;nbsp;"dojo/dnd/Moveable".&amp;nbsp;&lt;/P&gt;&lt;P&gt;In an app I'm working on I have a draggle window for tools.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To this I have a div on the page with a whole bunch of buttons for tools:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div id="toolsDiv" style="z-index:100;"&amp;gt;
    &amp;lt;button id="btnFullExtent" class="ui-button" title="Full Extent"&amp;gt;
        &amp;lt;i class="fas fa-expand-arrows-alt fa-lg"&amp;gt;&amp;lt;/i&amp;gt;
    &amp;lt;/button&amp;gt;
    &amp;lt;button id="btnPrevExtent" class="ui-button" title="Previous Extent"&amp;gt;
        &amp;lt;i class="fas fa-chevron-circle-left fa-lg"&amp;gt;&amp;lt;/i&amp;gt;
    &amp;lt;/button&amp;gt;
    &amp;lt;button id="btnSearch" class="ui-button" title="Search"&amp;gt;
        &amp;lt;i class="fas fa-search fa-lg"&amp;gt;&amp;lt;/i&amp;gt;
    &amp;lt;/button&amp;gt;
    &amp;lt;button id="btnAddStop" class="ui-button" title="New Stop Button"&amp;gt;
        &amp;lt;i class="fas fa-plus fa-lg"&amp;gt;&amp;lt;/i&amp;gt;
    &amp;lt;/button&amp;gt;
...
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Which sits within a DIV 'wrapper' that also has the map div init:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="wrapper"&amp;gt;
    &amp;lt;div id="toolsDiv" style="z-index:100;"&amp;gt;
        &amp;lt;button id="btnFullExtent" class="ui-button" title="Full Extent"&amp;gt;
...
    &amp;lt;/div&amp;gt;

    &amp;lt;div id="viewDiv" class="map"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div id="loadingDiv" class="loading"&amp;gt;&amp;lt;img src="./resources/Loading.gif" height="100" width="100" /&amp;gt;&amp;lt;/div&amp;gt;

&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;And CSS to render the tools Div:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;#toolsDiv {
    padding: 10px;
    border: 3px solid #000;
    background: #fff;
    position: absolute;
    left: 150px;
    border-radius: 15px;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; And then a call to instantiate the library:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let toolsDiv = new Moveable(dom.byId("toolsDiv"));&lt;/LI-CODE&gt;&lt;P&gt;After that the the div can be dragged anywhere within the wrapper div.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffreyWilkerson_0-1633623042031.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24762i36A593695B7BF3CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffreyWilkerson_0-1633623042031.png" alt="JeffreyWilkerson_0-1633623042031.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 16:12:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/draggable-modal/m-p/1105597#M48</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2021-10-07T16:12:33Z</dc:date>
    </item>
  </channel>
</rss>

