<?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: Widen Expand Widget button and display text instead of icon in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widen-expand-widget-button-and-display-text/m-p/1232320#M79345</link>
    <description>&lt;P&gt;Is there a better solution than this now? Id' rather not mess with CSS for this. I see Expand has a label property, but I'm not sure what it even does.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 18:06:02 GMT</pubDate>
    <dc:creator>_____</dc:creator>
    <dc:date>2022-11-16T18:06:02Z</dc:date>
    <item>
      <title>Widen Expand Widget button and display text instead of icon</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widen-expand-widget-button-and-display-text/m-p/251118#M23273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a client request to display the word "Legend" in a button on the map, that will expand/open a legend panel (in this case a custom div we have created, not the Legend widget).&amp;nbsp; So basically want to make one Expand button wider, and include text instead of the typical icon. Is there a pattern for doing this? And/or examples?&amp;nbsp; I know we can just forgo the Expand widget and create our own button to place over the map - and we may end up doing that - but first want to see if there's a reasonable way to do this with the Expand widget.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory we should be able to use the ExpandViewModel to make the Expand button look however we want, right? It's hard to follow where to start with that though, based on the existing doc and samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any thoughts/suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 23:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widen-expand-widget-button-and-display-text/m-p/251118#M23273</guid>
      <dc:creator>DavidMarley</dc:creator>
      <dc:date>2020-03-02T23:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Widen Expand Widget button and display text instead of icon</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widen-expand-widget-button-and-display-text/m-p/251119#M23274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We figured out a solution for this using CSS - the main thing being hiding the icon so the fallback text displays instead. Then we widened the icon to accommodate the text label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the CSS we apply (note in the Expand widget&amp;nbsp;expandTooltip = 'Legend', hence we can select that element via title='Legend'):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;div[title='Legend' i] {
 width: 62px;
 height: 32px;
 .esri-collapse__icon {
 display: none;
 }
 .esri-icon-font-fallback-text {
 width: auto;
 height: 13px;
 clip: auto;
 font-size: 12px;
 font-family: arial !important;
 }
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:15:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widen-expand-widget-button-and-display-text/m-p/251119#M23274</guid>
      <dc:creator>DavidMarley</dc:creator>
      <dc:date>2021-12-12T16:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Widen Expand Widget button and display text instead of icon</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widen-expand-widget-button-and-display-text/m-p/1232320#M79345</link>
      <description>&lt;P&gt;Is there a better solution than this now? Id' rather not mess with CSS for this. I see Expand has a label property, but I'm not sure what it even does.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 18:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widen-expand-widget-button-and-display-text/m-p/1232320#M79345</guid>
      <dc:creator>_____</dc:creator>
      <dc:date>2022-11-16T18:06:02Z</dc:date>
    </item>
  </channel>
</rss>

