<?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 Use width breakpoint on sidebar in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-width-breakpoint-on-sidebar/m-p/388393#M35841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my app, I'm having trouble shrinking the size of the sidebar so that it looks good on a mobile device. Here's the app in Code Pen: &lt;A class="link-titled" href="https://codepen.io/underjollyroger/pen/XWXPgqm?editors=1100" title="https://codepen.io/underjollyroger/pen/XWXPgqm?editors=1100" rel="nofollow noopener noreferrer" target="_blank"&gt;https://codepen.io/underjollyroger/pen/XWXPgqm?editors=1100&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this older post they collapse the sidebar into a button, but they're using Bootstrap: &lt;A href="https://community.esri.com/thread/152782" target="_blank"&gt;First attempt at bootstrap w/ sidebar&lt;/A&gt;. I was wondering how to do that based on this &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/view-breakpoints-css/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Responsive apps using CSS&lt;/A&gt; sample code because I'm not familiar with Bootstrap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) When the width breakpoint is less than medium (769-992 pixels) I'd like the sidebar to disappear. (2) In its place I'd like there to be a button. When the button is clicked I'd like to show the content of the sidebar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To at least get the sidebar to disappear, I can't even find its element ID. This doesn't work:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esri&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;view&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;width&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;less&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;than&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;medium &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sidebar &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    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>Sat, 11 Dec 2021 17:50:24 GMT</pubDate>
    <dc:creator>JaredPilbeam2</dc:creator>
    <dc:date>2021-12-11T17:50:24Z</dc:date>
    <item>
      <title>Use width breakpoint on sidebar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-width-breakpoint-on-sidebar/m-p/388393#M35841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my app, I'm having trouble shrinking the size of the sidebar so that it looks good on a mobile device. Here's the app in Code Pen: &lt;A class="link-titled" href="https://codepen.io/underjollyroger/pen/XWXPgqm?editors=1100" title="https://codepen.io/underjollyroger/pen/XWXPgqm?editors=1100" rel="nofollow noopener noreferrer" target="_blank"&gt;https://codepen.io/underjollyroger/pen/XWXPgqm?editors=1100&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this older post they collapse the sidebar into a button, but they're using Bootstrap: &lt;A href="https://community.esri.com/thread/152782" target="_blank"&gt;First attempt at bootstrap w/ sidebar&lt;/A&gt;. I was wondering how to do that based on this &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/view-breakpoints-css/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Responsive apps using CSS&lt;/A&gt; sample code because I'm not familiar with Bootstrap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) When the width breakpoint is less than medium (769-992 pixels) I'd like the sidebar to disappear. (2) In its place I'd like there to be a button. When the button is clicked I'd like to show the content of the sidebar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To at least get the sidebar to disappear, I can't even find its element ID. This doesn't work:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esri&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;view&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;width&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;less&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;than&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;medium &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sidebar &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    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>Sat, 11 Dec 2021 17:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-width-breakpoint-on-sidebar/m-p/388393#M35841</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-12-11T17:50:24Z</dc:date>
    </item>
  </channel>
</rss>

