<?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 Experience Builder + reactstrap/bootstrap proper use in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1066885#M2088</link>
    <description>&lt;P&gt;Hi, I have a framework question about ArcGIS ExB.&amp;nbsp; Thanks for any input.&amp;nbsp; As documented Experience Builder uses reactstrap under the hood for widget ui.&amp;nbsp; When creating a custom widget aiming to target specific components in reactstrap such as forms&amp;nbsp;&lt;A href="http://reactstrap.github.io/components/form/," target="_blank" rel="noopener"&gt;http://reactstrap.github.io/components/form/,&lt;/A&gt;&amp;nbsp;what is the proper way to reference these components?&amp;nbsp; I am seeing that if we import the components&amp;nbsp;import in the widget :&lt;/P&gt;&lt;P&gt;{ Button, Form, FormGroup, Label, Input, FormText } from 'reactstrap';&amp;nbsp;&lt;/P&gt;&lt;P&gt;...the resulting widget in the experience is not referencing the elements correctly including the bootstrap CSS and the components are basically not styled at all.&lt;/P&gt;&lt;P&gt;I am hoping to clarify how and when to target jimi-ui, reactstrap, and direct bootstrap in widget ui creation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any information.&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 14:12:32 GMT</pubDate>
    <dc:creator>SBerg_VHB</dc:creator>
    <dc:date>2021-06-10T14:12:32Z</dc:date>
    <item>
      <title>Experience Builder + reactstrap/bootstrap proper use</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1066885#M2088</link>
      <description>&lt;P&gt;Hi, I have a framework question about ArcGIS ExB.&amp;nbsp; Thanks for any input.&amp;nbsp; As documented Experience Builder uses reactstrap under the hood for widget ui.&amp;nbsp; When creating a custom widget aiming to target specific components in reactstrap such as forms&amp;nbsp;&lt;A href="http://reactstrap.github.io/components/form/," target="_blank" rel="noopener"&gt;http://reactstrap.github.io/components/form/,&lt;/A&gt;&amp;nbsp;what is the proper way to reference these components?&amp;nbsp; I am seeing that if we import the components&amp;nbsp;import in the widget :&lt;/P&gt;&lt;P&gt;{ Button, Form, FormGroup, Label, Input, FormText } from 'reactstrap';&amp;nbsp;&lt;/P&gt;&lt;P&gt;...the resulting widget in the experience is not referencing the elements correctly including the bootstrap CSS and the components are basically not styled at all.&lt;/P&gt;&lt;P&gt;I am hoping to clarify how and when to target jimi-ui, reactstrap, and direct bootstrap in widget ui creation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any information.&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 14:12:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1066885#M2088</guid>
      <dc:creator>SBerg_VHB</dc:creator>
      <dc:date>2021-06-10T14:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder + reactstrap/bootstrap proper use</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1067001#M2089</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/309070"&gt;@SBerg_VHB&lt;/a&gt;&amp;nbsp;- I'm not on the ExB team, so this is just my best "guess", but I believe you should be using the&amp;nbsp;&lt;STRONG&gt;jimu-ui&lt;/STRONG&gt; components &lt;EM&gt;always&lt;/EM&gt;. Per the doc,&amp;nbsp;&lt;A href="https://developers.arcgis.com/experience-builder/guide/widget-ui/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/experience-builder/guide/widget-ui/&lt;/A&gt;&amp;nbsp;it says when using jimu-ui you get the bootstrap CSS classes applied. I'd suspect that using the reactstrap reference would give you trouble with CSS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { Checkbox, TextInput, Select, Option, Button, Label, Input,  Container, Row, Col, Link  } from 'jimu-ui';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see the samples throughout using jimu-ui:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/search?p=1&amp;amp;q=jimu-ui" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-experience-builder-sdk-resources/search?p=1&amp;amp;q=jimu-ui&lt;/A&gt;&amp;nbsp; vs 0 references to reactstrap:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/search?q=reactstrap" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-experience-builder-sdk-resources/search?q=reactstrap&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 17:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1067001#M2089</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-10T17:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder + reactstrap/bootstrap proper use</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1067009#M2090</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;@Anonymous User.&amp;nbsp; I actually just found expected results when pulling in reactstrap components and bootstrap.css simply using the following:&lt;/P&gt;&lt;P&gt;import { Button, Form, FormGroup, Label, Input, FormText, Alert} from 'reactstrap';&lt;BR /&gt;import 'bootstrap/dist/css/bootstrap.min.css';&lt;/P&gt;&lt;P&gt;I definitely understand the best practice to use jimu-ui first whenever possible though.&amp;nbsp; Even with jimi-ui I did not see default bootstrap styles (for the FormGroup for example) applied until running the css import in the custom widget though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 17:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1067009#M2090</guid>
      <dc:creator>SBerg_VHB</dc:creator>
      <dc:date>2021-06-10T17:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder + reactstrap/bootstrap proper use</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1067110#M2092</link>
      <description>&lt;P&gt;I am now seeing the conflicts between bootstrap.css and jimu-ui.css.&amp;nbsp; For example bringing in the bootstrap makes some buttons in the app transparent like a sidepanel collapse button.&amp;nbsp; So how do you get form control styling is the current question I have.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 21:11:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1067110#M2092</guid>
      <dc:creator>SBerg_VHB</dc:creator>
      <dc:date>2021-06-10T21:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder + reactstrap/bootstrap proper use</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1271989#M6551</link>
      <description>&lt;P&gt;For all those wondering, here's a workaround.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;n.b for this example I use scss as a css pre-processor.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;As mentioned here, importing bootstrap breaks some part of EXB UI, so basically avoid the following line:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;//in a scss file
@import 'bootstrap/dist/css/bootstrap.css';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how to bypass ? First use as much as possible &lt;A href="https://developers.arcgis.com/experience-builder/storybook/" target="_self"&gt;&lt;EM&gt;jimu-ui&amp;nbsp;&lt;/EM&gt;&lt;/A&gt;or &lt;A href="https://developers.arcgis.com/experience-builder/sample-code/widgets/use-calcite-components/" target="_self"&gt;clacite&lt;/A&gt;&amp;nbsp;if you still need &lt;A href="https://reactstrap.github.io/" target="_self"&gt;reactstrap&lt;/A&gt;&amp;nbsp;try to import only part of bootstrap you need.&lt;/P&gt;&lt;P&gt;e.g let's say you need to use reacstrap's &lt;EM&gt;Carousel,&lt;/EM&gt; import only needed part in your style :&lt;/P&gt;&lt;LI-CODE lang="css"&gt;//in a scss file
//global
@import 'bootstrap/scss/_functions.scss';
@import 'bootstrap/scss/_variables.scss';
@import 'bootstrap/scss/_mixins.scss';
//for carousel
@import 'bootstrap/scss/_carousel.scss';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you may also try the following, in a div that encloses your widget:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;//in a scss file
@import 'bootstrap/dist/css/bootstrap';//no .css here&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 16:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1271989#M6551</guid>
      <dc:creator>Marc_Alx</dc:creator>
      <dc:date>2023-03-27T16:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder + reactstrap/bootstrap proper use</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1337327#M8679</link>
      <description>&lt;P&gt;I actually ran into this question while looking at the Quick Sample for Widget UI in the Builder Guide here:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A title="Quick Sample in Experience Builder Tutorial" href="https://developers.arcgis.com/experience-builder/guide/widget-ui/#quick-sample" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/experience-builder/guide/widget-ui/#quick-sample&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I reproduced this code, but the button is gray it picks up no styles form jimu-core at all that I see.&amp;nbsp; yet in the Tutorial it looks like it should be blue as a primary button.&amp;nbsp; It made me wonder if my setup of the Experience Builder Client was not importing the CSS for bootstrap propertly or if it was a reactstrap problem.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 15:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1337327#M8679</guid>
      <dc:creator>TimWestern</dc:creator>
      <dc:date>2023-10-12T15:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder + reactstrap/bootstrap proper use</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1337330#M8680</link>
      <description>&lt;P&gt;Additional information:&lt;BR /&gt;&lt;BR /&gt;The button shown is actually a screen cap image, so maybe its doing this because I don't have a theme setup yet when going through the tutorial?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 15:48:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-reactstrap-bootstrap-proper-use/m-p/1337330#M8680</guid>
      <dc:creator>TimWestern</dc:creator>
      <dc:date>2023-10-12T15:48:19Z</dc:date>
    </item>
  </channel>
</rss>

