<?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 calcite components alignment in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-alignment/m-p/1206826#M206</link>
    <description>&lt;P&gt;I am get trying to get the calcite components line up next to each other but it seems that css is overwritten by the table? Here is an example.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/lkoumis1/pen/wvmbbYR" target="_blank"&gt;https://codepen.io/lkoumis1/pen/wvmbbYR&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_0-1661534324365.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49576iFB555EF5EDEB9582/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_0-1661534324365.png" alt="LefterisKoumis_0-1661534324365.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2022 17:19:51 GMT</pubDate>
    <dc:creator>LefterisKoumis</dc:creator>
    <dc:date>2022-08-26T17:19:51Z</dc:date>
    <item>
      <title>calcite components alignment</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-alignment/m-p/1206826#M206</link>
      <description>&lt;P&gt;I am get trying to get the calcite components line up next to each other but it seems that css is overwritten by the table? Here is an example.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/lkoumis1/pen/wvmbbYR" target="_blank"&gt;https://codepen.io/lkoumis1/pen/wvmbbYR&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_0-1661534324365.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49576iFB555EF5EDEB9582/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_0-1661534324365.png" alt="LefterisKoumis_0-1661534324365.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 17:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-alignment/m-p/1206826#M206</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-08-26T17:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: calcite components alignment</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-alignment/m-p/1206888#M207</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;, In this case since the actions are related to the FeatureTable widget, you could leverage the widget's properties to add the functionality to the menu using the "&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#menuConfig" target="_blank" rel="noopener"&gt;menuConfig&lt;/A&gt;" property.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const featureTable = new FeatureTable({
      view: view,
      layer: featureLayer,
      // Custom FeatureTable menu items
      menuConfig: {
        items: [
          {
            label: "Clear Selection",
            iconClass: "esri-icon-erase",
            clickFunction: function (event) {
              // Clear selection functionality
            }
          },
          {
            label: "Export to CSV",
            iconClass: "esri-icon-download",
            clickFunction: function (event) {
              // Export to CSV functionality
            }
          }
        ]
      },
      tableTemplate: {
        columnTemplates: [
          {
            type: "field",
            fieldName: "state_name",
            label: "State",
            direction: "asc"
          },
          {
            type: "field",
            fieldName: "PercentagePrivate",
            label: "Private school percentage"
          },
          {
            type: "field",
            fieldName: "PercentagePublic",
            label: "Public school percentage"
          }
        ]
      },
      container: tableDiv
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a &lt;A href="https://codepen.io/geospatialem/pen/dymExyE" target="_blank" rel="noopener"&gt;Codepen&lt;/A&gt; for the full context.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 19:10:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-alignment/m-p/1206888#M207</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2022-08-26T19:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: calcite components alignment</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-alignment/m-p/1206891#M208</link>
      <description>&lt;P&gt;Thank you. I had the components&amp;nbsp;&lt;SPAN&gt;previously setup in the menuConfig, the same way as you mentioned.&amp;nbsp; It is a good solution for a small number of tools. However, since I need to have a longer list of tools to be used for the feature table, it will make a long listing for the user&amp;nbsp; to find the tool they need. To improve user's experience, I think placing the tools on the top of the feature table for easy and quick access is a better approach. Is there a way to deal with the issue that I described? Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 19:24:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-alignment/m-p/1206891#M208</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-08-26T19:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: calcite components alignment</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-alignment/m-p/1206906#M209</link>
      <description>&lt;P&gt;I figured it out. The solution was to get the components' div out of the tableDiv, and adjust the height in css.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div id="appContainer"&amp;gt;
        &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;

        &amp;lt;div id="tableContainer" class="container"&amp;gt;
          &amp;lt;div id="select-by-rectangle" style="float:left; text-align:center;"&amp;gt;
            &amp;lt;calcite-button appearance="transparent" color="red" icon-start="selection-x" scale="s"&amp;gt;Select by
              rectangle
            &amp;lt;/calcite-button&amp;gt;
          &amp;lt;/div&amp;gt;
          &amp;lt;div id="clear-selection" style="float:left; text-align:center;"&amp;gt;
            &amp;lt;calcite-button appearance="transparent" color="red" icon-start="erase" scale="s"&amp;gt;Clear
              Selection
            &amp;lt;/calcite-button&amp;gt;
          &amp;lt;/div&amp;gt;
          &amp;lt;div id="ExportInfo" style="float:left; text-align:center"&amp;gt;
            &amp;lt;calcite-button appearance="transparent" color="red" icon-start="download-to" scale="s"&amp;gt;Export
              to CSV
            &amp;lt;/calcite-button&amp;gt;
          &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div id="tableDiv"&amp;gt;&amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 19:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-components-alignment/m-p/1206906#M209</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-08-26T19:57:29Z</dc:date>
    </item>
  </channel>
</rss>

