<?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: PopupTemplate actions doesn't display icons in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/popuptemplate-actions-doesn-t-display-icons/m-p/1341937#M8951</link>
    <description>&lt;P&gt;The sample widgets library has an example of how to pull in images from your files.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/use-assets" target="_blank"&gt;https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/use-assets&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;div className="m-2"&amp;gt;
        &amp;lt;h4&amp;gt;1. Use &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;props.context.folderUrl&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; to load a large image from a URL. The image must be put in the &amp;lt;b&amp;gt;assets&amp;lt;/b&amp;gt; folder because the &amp;lt;b&amp;gt;assets&amp;lt;/b&amp;gt; folder will be copied to the &amp;lt;b&amp;gt;dist&amp;lt;/b&amp;gt; directory on compile.&amp;lt;/h4&amp;gt;
        &amp;lt;img style={{ width: '200px', height: '200px' }} src={`${props.context.folderUrl}dist/runtime/assets/large-image.jpg`}/&amp;gt;
      &amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I have had good results with this first method.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2023 13:32:36 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2023-10-26T13:32:36Z</dc:date>
    <item>
      <title>PopupTemplate actions doesn't display icons</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/popuptemplate-actions-doesn-t-display-icons/m-p/1341920#M8949</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I have created a custom&amp;nbsp;&lt;SPAN&gt;PopupTemplate with actions. I add actions like :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import {ArrowLeft} from '../images/ArrowLeft.png';
import { arrowLeft16 } from "@esri/calcite-ui-icons
{...}
actions: [
                    {
                      id: "display-item",
                      icon: {arrowLeft16},
                      title: "Display item"
                    },
                    {
                      id: "display-layer",
                      icon: {ArrowLeft},
                      title: "Add layer"
                    }
                  ],&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have trouble with icon visibility. I tried to add local PNG file as an icon, and second way by esri icons library (npm install @esri/calcite-ui-icons --save). None of these approaches work. I also tried to use "image" instead of "icon" attribute's key, but it didn't help.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 13:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/popuptemplate-actions-doesn-t-display-icons/m-p/1341920#M8949</guid>
      <dc:creator>ŁukaszWiszniewski</dc:creator>
      <dc:date>2023-10-26T13:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate actions doesn't display icons</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/popuptemplate-actions-doesn-t-display-icons/m-p/1341937#M8951</link>
      <description>&lt;P&gt;The sample widgets library has an example of how to pull in images from your files.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/use-assets" target="_blank"&gt;https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/use-assets&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;div className="m-2"&amp;gt;
        &amp;lt;h4&amp;gt;1. Use &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;props.context.folderUrl&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; to load a large image from a URL. The image must be put in the &amp;lt;b&amp;gt;assets&amp;lt;/b&amp;gt; folder because the &amp;lt;b&amp;gt;assets&amp;lt;/b&amp;gt; folder will be copied to the &amp;lt;b&amp;gt;dist&amp;lt;/b&amp;gt; directory on compile.&amp;lt;/h4&amp;gt;
        &amp;lt;img style={{ width: '200px', height: '200px' }} src={`${props.context.folderUrl}dist/runtime/assets/large-image.jpg`}/&amp;gt;
      &amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I have had good results with this first method.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 13:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/popuptemplate-actions-doesn-t-display-icons/m-p/1341937#M8951</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-10-26T13:32:36Z</dc:date>
    </item>
  </channel>
</rss>

