<?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 How to import a logo.png into a custom widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-import-a-logo-png-into-a-custom-widget/m-p/235761#M21976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking to add a footer to my custom widget which includes a logo.png of my institution. I add the .png to apps/2/widgets/customwidget/images folder and import them as an html &amp;lt;img&amp;gt; tag but the root directory that is searched for the images folder is apps/2. I want this custom widget to be as plug and play portable as possible and therefore need the images to remain in the customwidget folder. Is there any way to import images from within the customwidget directory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2019 20:14:52 GMT</pubDate>
    <dc:creator>AnthonyLibetti</dc:creator>
    <dc:date>2019-11-28T20:14:52Z</dc:date>
    <item>
      <title>How to import a logo.png into a custom widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-import-a-logo-png-into-a-custom-widget/m-p/235761#M21976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking to add a footer to my custom widget which includes a logo.png of my institution. I add the .png to apps/2/widgets/customwidget/images folder and import them as an html &amp;lt;img&amp;gt; tag but the root directory that is searched for the images folder is apps/2. I want this custom widget to be as plug and play portable as possible and therefore need the images to remain in the customwidget folder. Is there any way to import images from within the customwidget directory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2019 20:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-import-a-logo-png-into-a-custom-widget/m-p/235761#M21976</guid>
      <dc:creator>AnthonyLibetti</dc:creator>
      <dc:date>2019-11-28T20:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a logo.png into a custom widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-import-a-logo-png-into-a-custom-widget/m-p/235762#M21977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is this question regrading WAB or the JS API? It's confusing because you have this in the JS API space but it sounds like a WAB question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 13:26:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-import-a-logo-png-into-a-custom-widget/m-p/235762#M21977</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-12-02T13:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a logo.png into a custom widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-import-a-logo-png-into-a-custom-widget/m-p/235763#M21978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is regarding the JS API, I'm referring to a custom widget that my organization&amp;nbsp;is hosting and I was looking to manipulate that logo from within the widget.js file. I was finding that the images folder within the widget's directory wasn't&amp;nbsp;automatically accessed by the widget.html when specifying &amp;lt;img&amp;gt; uri but rather the app's root directory. As a workaround, I used jquery to append the&amp;nbsp;&amp;lt;img&amp;gt; to the custom widget's footer on postcreate so I don't have to crawl through user directory's to find the custom widget and search for the logo.png.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Dec 2019 05:30:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-import-a-logo-png-into-a-custom-widget/m-p/235763#M21978</guid>
      <dc:creator>AnthonyLibetti</dc:creator>
      <dc:date>2019-12-08T05:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a logo.png into a custom widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-import-a-logo-png-into-a-custom-widget/m-p/235764#M21979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/375321"&gt;Anthony Libetti&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #a9a9a9; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 12.46px; font-style: normal; font-variant: normal; font-weight: 500; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Use this.folderUrl variable, it will&amp;nbsp; give you the current custom widget location/path, and then manipulate logo.png location accordingly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #a9a9a9; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 12.46px; font-style: normal; font-variant: normal; font-weight: 500; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #a9a9a9; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 12.46px; font-style: normal; font-variant: normal; font-weight: 500; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;This is easier, it is hard to manage if you use like relative path/absolute path to pin/point logo.png.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2019 00:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-import-a-logo-png-into-a-custom-widget/m-p/235764#M21979</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-09T00:59:56Z</dc:date>
    </item>
  </channel>
</rss>

