<?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: Expand widget show text instead of icon? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expand-widget-show-text-instead-of-icon/m-p/1236671#M79511</link>
    <description>&lt;P&gt;Ooh great, I didn't realize that, I'll give it a try... thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 01:14:31 GMT</pubDate>
    <dc:creator>_____</dc:creator>
    <dc:date>2022-12-01T01:14:31Z</dc:date>
    <item>
      <title>Expand widget show text instead of icon?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expand-widget-show-text-instead-of-icon/m-p/1236218#M79484</link>
      <description>&lt;P&gt;Is there an easy way to have the Expand widget show text instead of icons?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 22:57:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expand-widget-show-text-instead-of-icon/m-p/1236218#M79484</guid>
      <dc:creator>_____</dc:creator>
      <dc:date>2022-11-29T22:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expand widget show text instead of icon?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expand-widget-show-text-instead-of-icon/m-p/1236447#M79497</link>
      <description>&lt;P&gt;The &lt;A title="Expand Content" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#content" target="_blank" rel="noopener"&gt;Expand widget Content&lt;/A&gt; section describes that it can handle a Node, String, or Widget. So you could add text like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;html lang="en"&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta
      name="viewport"
      content="initial-scale=1,maximum-scale=1,user-scalable=no"
    /&amp;gt;
    &amp;lt;title&amp;gt;
      Intro to FeatureLayer plus Expand Widget | ArcGIS API for JavaScript 4.25
    &amp;lt;/title&amp;gt;

    &amp;lt;link
      rel="stylesheet"
      href="https://js.arcgis.com/4.25/esri/themes/light/main.css"
    /&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.25/"&amp;gt;&amp;lt;/script&amp;gt;

    &amp;lt;style&amp;gt;
      html,
      body,
      #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    &amp;lt;/style&amp;gt;

    &amp;lt;script&amp;gt;
      require(["esri/Map", "esri/views/MapView", "esri/layers/FeatureLayer","esri/widgets/Expand"], (
        Map,
        MapView,
        FeatureLayer,
        Expand
      ) =&amp;gt; {
        const map = new Map({
          basemap: "hybrid"
        });

        const view = new MapView({
          container: "viewDiv",
          map: map,

          extent: {
            // autocasts as new Extent()
            xmin: -9177811,
            ymin: 4247000,
            xmax: -9176791,
            ymax: 4247784,
            spatialReference: 102100
          }
        });

        // ** Add feature layer **
        // Carbon storage of trees in Warren Wilson College.
        const featureLayer = new FeatureLayer({
          url: "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0"
        });

        map.add(featureLayer);
        
        // ** Add Expand Widget **
        const bgExpand = new Expand({
            view: view,
            content: "&amp;lt;p style='background-color:white; width: 150px;''&amp;gt;This is a string to display&amp;lt;/p&amp;gt;"
          });
        
        view.whenLayerView(featureLayer).then(function () {
          view.ui.add(bgExpand, "top-right");
        });
        
      });
    &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;

  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 17:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expand-widget-show-text-instead-of-icon/m-p/1236447#M79497</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2022-11-30T17:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Expand widget show text instead of icon?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expand-widget-show-text-instead-of-icon/m-p/1236671#M79511</link>
      <description>&lt;P&gt;Ooh great, I didn't realize that, I'll give it a try... thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 01:14:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expand-widget-show-text-instead-of-icon/m-p/1236671#M79511</guid>
      <dc:creator>_____</dc:creator>
      <dc:date>2022-12-01T01:14:31Z</dc:date>
    </item>
  </channel>
</rss>

