<?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: Using Calcite Design System Icons for expandIconClass in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-calcite-design-system-icons-for/m-p/1275590#M80754</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573916"&gt;@Dirk_Vandervoort&lt;/a&gt;&amp;nbsp;- we're adding support for calcite icons in the Expand widget in the upcoming release of the API (version 4.27) through two new properties on the Expand widget, &lt;FONT face="andale mono,times"&gt;expandIcon&lt;/FONT&gt; and &lt;FONT face="andale mono,times"&gt;collapseIcon&lt;/FONT&gt;, that accept strings referencing &lt;A href="https://developers.arcgis.com/calcite-design-system/icons/?library=Calcite%20UI&amp;amp;version=3.21.2" target="_self"&gt;Calcite UI icons&lt;/A&gt;. If you want to test out this fix before it heads to production, check out the &lt;A href="https://github.com/Esri/feedback-js-api-next" target="_self"&gt;development version&lt;/A&gt; of the API,&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://js.arcgis.com/next" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/next&lt;/A&gt;&lt;/STRONG&gt;. Let us know if you have any feedback - thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2023 22:33:23 GMT</pubDate>
    <dc:creator>AnneFitz</dc:creator>
    <dc:date>2023-04-04T22:33:23Z</dc:date>
    <item>
      <title>Using Calcite Design System Icons for expandIconClass</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-calcite-design-system-icons-for/m-p/1252612#M80084</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;It's well-known that mapview icons for widgets can be gotten from Calcite theme Esri Icon fonts (&lt;A href="https://developers.arcgis.com/javascript/latest/esri-icon-font/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/esri-icon-font/&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Also it'[s well known that Calcite has a plethora of icons:&amp;nbsp;&lt;A href="https://developers.arcgis.com/calcite-design-system/icons/?icon=erase&amp;amp;library=Calcite%20UI&amp;amp;query=&amp;amp;version=3.19.4" target="_blank"&gt;https://developers.arcgis.com/calcite-design-system/icons/?icon=erase&amp;amp;library=Calcite%20UI&amp;amp;query=&amp;amp;version=3.19.4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is use the Calcite Design System Icons for the&amp;nbsp;expandIconClass for an Expand widget.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const nodette1 = document.getElementById("slope-slider-container");
let photoFilterExpand = new Expand({
     expandIconClass: &amp;lt;HERE_IS_MY_CUSTOM_ICON_CLASS&amp;gt;,
     expandTooltip: "Slope Map",
     view: sceneView,
     content: nodette1,
     id:"slope-map-expand"
});
sceneView.ui.add(photoFilterExpand, "bottom-left"); &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'd like to do is make&amp;nbsp;&amp;lt;HERE_IS_MY_CUSTOM_ICON_CLASS&amp;gt; use the Calcite Design System Icons (and another other icon I make for that matter ;-o).&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 16:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-calcite-design-system-icons-for/m-p/1252612#M80084</guid>
      <dc:creator>Dirk_Vandervoort</dc:creator>
      <dc:date>2023-01-28T16:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Calcite Design System Icons for expandIconClass</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-calcite-design-system-icons-for/m-p/1267592#M80545</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573916"&gt;@Dirk_Vandervoort&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're looking into it to provide an easy way to use the Calcite icons in the Expand widget.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meanwhile, you can try out this workaround to use a custom svg:&amp;nbsp;&lt;/P&gt;&lt;P&gt;When adding the Expand widget:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      const bgExpand = new Expand({
        view: view,
        content: basemapGallery,
        expandIconClass: "custom-keyboard-icon"
      });&lt;/LI-CODE&gt;&lt;P&gt;And in CSS:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;span.esri-collapse__icon.custom-keyboard-icon {
  display: block;
  width: 16px;
  height: 16px;
  content: url(https://www1.plurib.us/1shot/2007/grapefruit/grapefruit_final.svg);
}&lt;/LI-CODE&gt;&lt;P&gt;Sample app:&amp;nbsp;&lt;A href="https://codepen.io/gsoosalu/pen/rNZLGqL" target="_blank"&gt;https://codepen.io/gsoosalu/pen/rNZLGqL&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: as this is a workaround, the CSS classnames may change in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 15:22:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-calcite-design-system-icons-for/m-p/1267592#M80545</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2023-03-14T15:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using Calcite Design System Icons for expandIconClass</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-calcite-design-system-icons-for/m-p/1275590#M80754</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573916"&gt;@Dirk_Vandervoort&lt;/a&gt;&amp;nbsp;- we're adding support for calcite icons in the Expand widget in the upcoming release of the API (version 4.27) through two new properties on the Expand widget, &lt;FONT face="andale mono,times"&gt;expandIcon&lt;/FONT&gt; and &lt;FONT face="andale mono,times"&gt;collapseIcon&lt;/FONT&gt;, that accept strings referencing &lt;A href="https://developers.arcgis.com/calcite-design-system/icons/?library=Calcite%20UI&amp;amp;version=3.21.2" target="_self"&gt;Calcite UI icons&lt;/A&gt;. If you want to test out this fix before it heads to production, check out the &lt;A href="https://github.com/Esri/feedback-js-api-next" target="_self"&gt;development version&lt;/A&gt; of the API,&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://js.arcgis.com/next" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/next&lt;/A&gt;&lt;/STRONG&gt;. Let us know if you have any feedback - thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 22:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-calcite-design-system-icons-for/m-p/1275590#M80754</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-04-04T22:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using Calcite Design System Icons for expandIconClass</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-calcite-design-system-icons-for/m-p/1535502#M85610</link>
      <description>&lt;P&gt;Anne,&lt;/P&gt;&lt;P&gt;Is it possible to specify the size of the icon when referencing the calcite icon? Something like "chevron-left-24"? Or could this component be expanded to take a direct reference to an icon like:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;SPAN&gt;chevronLeft32&lt;/SPAN&gt;&lt;SPAN&gt; } &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'@esri/calcite-ui-icons'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;or "someUrl.png"?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Colin Sullivan&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Sep 2024 14:41:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-calcite-design-system-icons-for/m-p/1535502#M85610</guid>
      <dc:creator>ColinSullivan</dc:creator>
      <dc:date>2024-09-05T14:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Calcite Design System Icons for expandIconClass</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-calcite-design-system-icons-for/m-p/1535610#M85612</link>
      <description>&lt;P&gt;Hi Colin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifying the size is not possible at this time. For the component being able to take a direct reference to an icon or image, could you submit an &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/idb-p/arcgis-api-for-javascript-ideas" target="_self"&gt;ArcGIS Idea&lt;/A&gt;&amp;nbsp;or Enhancement request through support? This will help us track it better!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 18:09:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-calcite-design-system-icons-for/m-p/1535610#M85612</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2024-09-05T18:09:25Z</dc:date>
    </item>
  </channel>
</rss>

