<?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: Need a SidePopper example in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/need-a-sidepopper-example/m-p/1535493#M14718</link>
    <description>&lt;P&gt;No argument here. But, there is something of a technical limitation to proper documentation for the Storybook specifically. Because the Storybook itself is written in React, if the functions were actually written out, they would be active and could cause all sorts of chaos. Still, they could include some comments about "you need to write a function here."&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2024 14:29:04 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2024-09-05T14:29:04Z</dc:date>
    <item>
      <title>Need a SidePopper example</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/need-a-sidepopper-example/m-p/1535256#M14706</link>
      <description>&lt;P&gt;Is there any working code available to show how to use the &lt;A href="https://developers.arcgis.com/experience-builder/storybook/?path=/docs/components-jimu-ui-advanced-setting-components-sidepopper--docs" target="_self"&gt;SidePopper&lt;/A&gt; in the settings.tsx? While the code in the documentation works on the doc page, it doesn't create a SidePopper in my application. The only places I see it used in the code base are in js files.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;&amp;gt;
  &amp;lt;div
    data-layoutid="right-sidebar-right-layout"
    style={{
      border: '1px solid',
      height: 'calc(100% - 70px)',
      minHeight: '350px',
      padding: '16px',
      position: 'absolute',
      right: 0,
      top: 0,
      width: '260px'
    }}
  &amp;gt;
    &amp;lt;h3&amp;gt;
      Widget setting panel
    &amp;lt;/h3&amp;gt;
    &amp;lt;div
      ref={{
        current: '[Circular]'
      }}
      style={{
        border: '1px solid'
      }}
    &amp;gt;
      &amp;lt;h4&amp;gt;
        Side popper trigger area
      &amp;lt;/h4&amp;gt;
      &amp;lt;p&amp;gt;
        Clicking this area won't close the side popper.
      &amp;lt;/p&amp;gt;
      &amp;lt;p&amp;gt;
        Clicking other area will close the side popper.
      &amp;lt;/p&amp;gt;
      &amp;lt;Button onClick={() =&amp;gt; {}}&amp;gt;
        Toggle side popper
      &amp;lt;/Button&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;SidePopper
    position="right"
    toggle={() =&amp;gt; {}}
  /&amp;gt;
&amp;lt;/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 20:02:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/need-a-sidepopper-example/m-p/1535256#M14706</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-09-04T20:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need a SidePopper example</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/need-a-sidepopper-example/m-p/1535286#M14708</link>
      <description>&lt;P&gt;Anytime the Storybook has a ()=&amp;gt;{} it means fill this in with a function that does what you want.&lt;/P&gt;&lt;P&gt;To make the SidePopper work, you will need some piece of state to handle it opening and closing. It should look something like this.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const [open, setOpen] = useState(false)

return(
&amp;lt;&amp;gt;
&amp;lt;Button onClick={()=&amp;gt; (setOpen(!open))}&amp;gt;&amp;lt;Button/&amp;gt;
&amp;lt;SidePopper isOpen={open} /&amp;gt;
&amp;lt;/&amp;gt;
)&lt;/LI-CODE&gt;&lt;P&gt;There's probably some sort of syntax error in there somewhere, but it should be close to right.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 20:47:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/need-a-sidepopper-example/m-p/1535286#M14708</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-09-04T20:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need a SidePopper example</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/need-a-sidepopper-example/m-p/1535483#M14717</link>
      <description>&lt;P&gt;Thanks Jeffrey&lt;/P&gt;&lt;P&gt;I really wish Esri would step up their efforts on getting proper documentation for Experience Builder. So many things are missing from the API Reference and it's tough digging through the code base to figure out how to use things.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 14:19:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/need-a-sidepopper-example/m-p/1535483#M14717</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-09-05T14:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need a SidePopper example</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/need-a-sidepopper-example/m-p/1535493#M14718</link>
      <description>&lt;P&gt;No argument here. But, there is something of a technical limitation to proper documentation for the Storybook specifically. Because the Storybook itself is written in React, if the functions were actually written out, they would be active and could cause all sorts of chaos. Still, they could include some comments about "you need to write a function here."&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 14:29:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/need-a-sidepopper-example/m-p/1535493#M14718</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-09-05T14:29:04Z</dc:date>
    </item>
  </channel>
</rss>

