<?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: Widget layout/styling question - first widget! in Experience Builder Custom Widgets</title>
    <link>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1534347#M373</link>
    <description>&lt;P&gt;I usually deal with this problem by using in-line style in the highest level div in my widget.tsx. Using in-line style overrides the CSS priority of the standard widget classes applied by Experience Builder.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;div style={{ "height": "inherit", "overflow": "auto" }}&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2024 13:06:29 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2024-09-03T13:06:29Z</dc:date>
    <item>
      <title>Widget layout/styling question - first widget!</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1533595#M372</link>
      <description>&lt;P&gt;Hi, I built my very first EXB 1.15 React/Typescript widget and it works! The only issue I have now is figuring out how to do CSS so that it fits within a grid layout and doesn't flow off the page and adds a scroll bar. I have made this work by hacking the CSS and giving the Div a height but I'd like to be able to add it to any layout box and have that work. It could be I just haven't found the right layout widget to place it into?&lt;/P&gt;&lt;P&gt;The widget is a Layer Control type of widget that takes all the layers, Feature, Image and Map Image, in a Web Map and put then into a radio button list so you can toggle the layers and only display one layer at a time. The problem I face is the layer list gets long and goes off the page outside of the layout. I'd rather have it stay within the window and add a scroll bar. I have made it behave correctly by giving a height to the Div but I'd rather have this work automatically when I add the widget to a layout box. Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 21:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1533595#M372</guid>
      <dc:creator>DHighness</dc:creator>
      <dc:date>2024-08-30T21:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Widget layout/styling question - first widget!</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1534347#M373</link>
      <description>&lt;P&gt;I usually deal with this problem by using in-line style in the highest level div in my widget.tsx. Using in-line style overrides the CSS priority of the standard widget classes applied by Experience Builder.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;div style={{ "height": "inherit", "overflow": "auto" }}&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 13:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1534347#M373</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-09-03T13:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Widget layout/styling question - first widget!</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1534452#M374</link>
      <description>&lt;P&gt;That works as long as it's okay if the entire widget scrolls. I was hoping to have the widget header remain visible at the top and the lower box with radio buttons scroll. When I try that I can't figure out how to account for the height of the header. It's fine though, I need to get better at CSS.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { IMThemeVariables, css, SerializedStyles } from 'jimu-core'

export function getStyle (theme: IMThemeVariables): SerializedStyles {
  const bg = theme.surfaces[1].bg

  return css`
    .widget-body {
        align-items: center;
        justify-content: right;
        font-size: 14px;
        background-color: ${bg};
        height: inherit;
        overflow: auto;

        .header-container {
          padding-top: 10px;
          padding-bottom: 10px;
          padding-left: 0.25rem;
          padding-right: 0.25rem;
          display: flex;
          justify-content: space-between;

          .header-title {
            font-weight:bold;
          }

          .header-legend {
            padding-left: 5px;
          }
        }

        .body-radio-group {
          padding-left: 10px;
          /*height: inherit;*/
          /*overflow: auto;*/
          /*height: calc(100vh - 131px);*/

          .radio-box {
            display: flex;

            .radio-label {
              padding-left: 10px;
            }
          }
        }
    }
  `
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Sep 2024 16:25:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1534452#M374</guid>
      <dc:creator>DHighness</dc:creator>
      <dc:date>2024-09-03T16:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Widget layout/styling question - first widget!</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1534489#M375</link>
      <description>&lt;P&gt;Here is the code for my widget if anyone would like to use it. I put the code in a folder named "radio-layers" in the "/your-extentions/widgets/" folder.&lt;/P&gt;&lt;P&gt;&lt;A title="Radio-Layers widget" href="https://github.com/pucuz/Experience-Builder-Radio-Layers-Widget" target="_blank" rel="noopener"&gt;GitHub Repo&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 17:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1534489#M375</guid>
      <dc:creator>DHighness</dc:creator>
      <dc:date>2024-09-03T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Widget layout/styling question - first widget!</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1534533#M376</link>
      <description>&lt;P&gt;To get your header to stay in place you can use the position: sticky property.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.w3schools.com/css/css_positioning.asp" target="_blank"&gt;https://www.w3schools.com/css/css_positioning.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As Experience Builder supports Bootstrap, you should be able to access it by adding the class "position-sticky" to the div with your header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://getbootstrap.com/docs/5.3/utilities/position/" target="_blank"&gt;https://getbootstrap.com/docs/5.3/utilities/position/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 17:39:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1534533#M376</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-09-03T17:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Widget layout/styling question - first widget!</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1534750#M377</link>
      <description>&lt;P&gt;I added "position:sticky" to the header along with a background and "top:0" and that keeps the header at the top of the scroll list. Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 22:48:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1534750#M377</guid>
      <dc:creator>DHighness</dc:creator>
      <dc:date>2024-09-03T22:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Widget layout/styling question - first widget!</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1536557#M382</link>
      <description>&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;The widget name in manifest.json is not the same with the folder name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Github download:&lt;/STRONG&gt; Experience-Builder-Radio-Layers-Widget-main&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;manifest.json:&lt;/STRONG&gt; radio-layers&lt;/P&gt;&lt;P&gt;Thanks for posting. In the process of checking the widget out I was getting a message in the client folder prompt telling me the folder name didn't match the widget name. Your Github download has a different name than the widget name in the manifest.json. Once I changed the download folder name it was fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;C:\arcgis-experience-builder-1.15\client\your-extensions\widgets\radion-layers&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 18:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1536557#M382</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2024-09-09T18:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Widget layout/styling question - first widget!</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1536593#M383</link>
      <description>&lt;P&gt;I modified the readme.md to hopefully make that a little more clear.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Create a folder /your-extensions/widgets/radio-layers in Experience Builder Developer Edition 1.15 and copy the contents of the repository into it.&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Sep 2024 19:38:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1536593#M383</guid>
      <dc:creator>DHighness</dc:creator>
      <dc:date>2024-09-09T19:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Widget layout/styling question - first widget!</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1588342#M470</link>
      <description>&lt;P&gt;Thank you for the widget! A preview/demo would be nice.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 08:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/widget-layout-styling-question-first-widget/m-p/1588342#M470</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2025-02-23T08:37:50Z</dc:date>
    </item>
  </channel>
</rss>

