<?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 Layer list - add extra text in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layer-list-add-extra-text/m-p/1366178#M23333</link>
    <description>&lt;P&gt;I want to add text after each layer list object, which I guess would be done by editing LayerListView.js. The ideal scenario is being able to add a link after each object, where the link contains the layer name. Anyone got any suggestions on how to achieve that?&lt;/P&gt;&lt;P&gt;How it currently works:&lt;BR /&gt;&amp;lt;div class="layer-title-div-1704359275081r8878678241822502 div-content jimu-float-leading "&amp;gt;ncov_cases – Deaths&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;What I am after:&lt;/P&gt;&lt;P&gt;&amp;lt;div class="layer-title-div-1704359275081r8878678241822502 div-content jimu-float-leading "&amp;gt;ncov_cases – Deaths&amp;lt;/div&amp;gt;&amp;lt;a target="_blank" href="&lt;A href="https://customurl/?layer=ncov_cases" target="_blank" rel="noopener"&gt;https://customurl/?layer=ncov_cases&lt;/A&gt; – Deaths#viewdata" style="text-decoration: none"&amp;gt;&amp;lt;span title="Read more"&amp;gt;🛈&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 09:28:51 GMT</pubDate>
    <dc:creator>LeifNorberg1</dc:creator>
    <dc:date>2024-01-04T09:28:51Z</dc:date>
    <item>
      <title>Layer list - add extra text</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layer-list-add-extra-text/m-p/1366178#M23333</link>
      <description>&lt;P&gt;I want to add text after each layer list object, which I guess would be done by editing LayerListView.js. The ideal scenario is being able to add a link after each object, where the link contains the layer name. Anyone got any suggestions on how to achieve that?&lt;/P&gt;&lt;P&gt;How it currently works:&lt;BR /&gt;&amp;lt;div class="layer-title-div-1704359275081r8878678241822502 div-content jimu-float-leading "&amp;gt;ncov_cases – Deaths&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;What I am after:&lt;/P&gt;&lt;P&gt;&amp;lt;div class="layer-title-div-1704359275081r8878678241822502 div-content jimu-float-leading "&amp;gt;ncov_cases – Deaths&amp;lt;/div&amp;gt;&amp;lt;a target="_blank" href="&lt;A href="https://customurl/?layer=ncov_cases" target="_blank" rel="noopener"&gt;https://customurl/?layer=ncov_cases&lt;/A&gt; – Deaths#viewdata" style="text-decoration: none"&amp;gt;&amp;lt;span title="Read more"&amp;gt;🛈&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 09:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layer-list-add-extra-text/m-p/1366178#M23333</guid>
      <dc:creator>LeifNorberg1</dc:creator>
      <dc:date>2024-01-04T09:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Layer list - add extra text</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layer-list-add-extra-text/m-p/1366190#M23334</link>
      <description>&lt;P&gt;I found that I could do this, but there is a problem:&lt;BR /&gt;var layerTitleDivIdClass = 'layer-title-div-' + layerInfo.id;&lt;BR /&gt;divLabel = domConstruct.create('div', {&lt;BR /&gt;'innerHTML': jimuUtils.sanitizeHTML(layerInfo.title + '&amp;lt;a target="_blank" href="&lt;A href="https://customurl/?layer='+" target="_blank" rel="noopener"&gt;https://customurl/?layer='+&lt;/A&gt; layerInfo.title + '#viewdata" style="text-decoration: none"&amp;gt;&amp;lt;span title="Read more"&amp;gt;🛈&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;'),&lt;BR /&gt;'class':layerTitleDivIdClass + ' div-content jimu-float-leading ' + grayedTitleClass&lt;BR /&gt;}, layerTitleTdNode);&lt;BR /&gt;&lt;BR /&gt;I can't seem to keep the target="_blank", since the result is:&lt;BR /&gt;&amp;lt;div class="layer-title-div-1704363952933r5863144829289666 div-content jimu-float-leading "&amp;gt;ncov_cases – Cases&amp;lt;a href="&lt;A href="https://customurl/?layer=ncov_cases" target="_blank" rel="noopener"&gt;https://customurl/?layer=ncov_cases&lt;/A&gt; – Cases#viewdata"&amp;gt;&amp;lt;span title="Read more"&amp;gt;🛈&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could remove the sanitizing and it would just work, but of course it would be better to keep it. If anyone have any suggestions I would be grateful.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 11:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layer-list-add-extra-text/m-p/1366190#M23334</guid>
      <dc:creator>LeifNorberg1</dc:creator>
      <dc:date>2024-01-04T11:07:01Z</dc:date>
    </item>
  </channel>
</rss>

