<?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: How to change UI for a preexisting widget which is using style from esri.css in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-change-ui-for-a-preexisting-widget-which-is/m-p/148691#M4163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou Stan... That was really what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2015 06:38:24 GMT</pubDate>
    <dc:creator>HumzaAkhtar</dc:creator>
    <dc:date>2015-05-27T06:38:24Z</dc:date>
    <item>
      <title>How to change UI for a preexisting widget which is using style from esri.css</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-change-ui-for-a-preexisting-widget-which-is/m-p/148687#M4159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forexample, the measurement widget. The existing style 'measurementDiv' taken from esri.css looks like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="103027" alt="1.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/103027_1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Lets say I dont like the icons and I want to change its css. Then how can I go about doing that ? I know these widgets take their style and icons from esri.css, but this file is not located in webapp builder dev edition folder. It is referenced from an Esri server in init.js. So what is the correct procedure to overwrite this file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Humza&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 10:04:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-change-ui-for-a-preexisting-widget-which-is/m-p/148687#M4159</guid>
      <dc:creator>HumzaAkhtar</dc:creator>
      <dc:date>2015-05-25T10:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to change UI for a preexisting widget which is using style from esri.css</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-change-ui-for-a-preexisting-widget-which-is/m-p/148688#M4160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Humza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One option would be to find the developer tools by right clicking on the icon and selecting inspect element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when the image div is selected click the &lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/103417_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt; in the upper right hand corner&amp;nbsp; (chrome).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just changed the image to an up arrow using the css below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For web app builder I am not a 100% sure where to put the new css. I would try the measurement widget css first. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/103415_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/103412_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 14:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-change-ui-for-a-preexisting-widget-which-is/m-p/148688#M4160</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-05-25T14:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to change UI for a preexisting widget which is using style from esri.css</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-change-ui-for-a-preexisting-widget-which-is/m-p/148689#M4161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rickey.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 05:45:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-change-ui-for-a-preexisting-widget-which-is/m-p/148689#M4161</guid>
      <dc:creator>HumzaAkhtar</dc:creator>
      <dc:date>2015-05-26T05:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to change UI for a preexisting widget which is using style from esri.css</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-change-ui-for-a-preexisting-widget-which-is/m-p/148690#M4162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/28108" target="_blank"&gt;Humza Akhtar&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;1. open \widgets\Measurement\manifest.json and change the "hasStyle" from false to true&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"hasStyle": true&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Add new icon to \widgets\Measurement\images folder (for example call it ruler.png). As a side note here your icon needs to be 16px by 16px or you will only see the top left corner of the image. If you want a larger image then adjust the values below, just make sure the image matches the sizes below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Add a new folder here: \widgets\Measurement\ called css and a style sheet inside. The path will look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \widgets\Measurement\css\style.css&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In the style.css add this &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;.esriMeasurement .distanceIcon{
&amp;nbsp; background-image: url("../images/ruler.png");
&amp;nbsp; width: 16px;
&amp;nbsp; height: 16px;
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:03:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-change-ui-for-a-preexisting-widget-which-is/m-p/148690#M4162</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2021-12-11T08:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to change UI for a preexisting widget which is using style from esri.css</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-change-ui-for-a-preexisting-widget-which-is/m-p/148691#M4163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou Stan... That was really what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 06:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-change-ui-for-a-preexisting-widget-which-is/m-p/148691#M4163</guid>
      <dc:creator>HumzaAkhtar</dc:creator>
      <dc:date>2015-05-27T06:38:24Z</dc:date>
    </item>
  </channel>
</rss>

