<?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: is there any way to customize individual elements in a LayerList? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246121#M22805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link is missing a : behind the http&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cmap2.vims.edu/SAM/ShorelineAssessmentMapper.html" title="http://cmap2.vims.edu/SAM/ShorelineAssessmentMapper.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Layer List Dijit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for making changes to the items in your layout, you should get familiar with the browsers' development tools. In &lt;A href="https://developer.chrome.com/devtools" rel="nofollow noopener noreferrer" target="_blank"&gt;Chrome&lt;/A&gt;, for example, right click on the element and select "&lt;A href="https://developer.chrome.com/devtools/docs/dom-and-styles" rel="nofollow noopener noreferrer" target="_blank"&gt;Inspect&lt;/A&gt;" to get this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="194547" alt="inspectcheckbox.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/194547_inspectcheckbox.png" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add css styles to see how they affect your layout. In this case,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;input#layerList_checkbox_0 {
&amp;nbsp;&amp;nbsp;&amp;nbsp; visibility: hidden;
}&lt;/PRE&gt;&lt;P&gt;will hide just the checkbox for the top item.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:15:41 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2021-12-11T12:15:41Z</dc:date>
    <item>
      <title>is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246115#M22799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, I have a layer list generated from a dynamic map service layer and I'd like to make a few cosmetic changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to make the map service name (the header at the top level of the tree) into a bigger bolder typeface and center it.&amp;nbsp; I see that one can change some properties like typeface of all the elements but I just want to change that one element. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I'd like to make its check box invisible to the user (unnecessary for it to be there since it will always be checked) and I'd like to have the tree expanded upon loading.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are these changes possible?&amp;nbsp; Thanks much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 18:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246115#M22799</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2016-04-08T18:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246116#M22800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These changes should be possible. Can you post your code for the layer list and provide some screen shots of what you want changed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 19:26:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246116#M22800</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2016-04-08T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246117#M22801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks much Rickey!&amp;nbsp; My layer list widget and my code are below.&amp;nbsp; Basically I would just like to enlarge and bolden the "Shoreline Assessment Mapper" text at the top and center it.&amp;nbsp; Then&lt;/P&gt;&lt;P&gt;remove that check box (and have it checked by default) and the layer list&amp;nbsp; expanded when it loads.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="LayerList2.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/194527_LayerList2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new Map("map", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "Base map",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-76.7, 37.786],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scale: 2000000
&amp;nbsp;&amp;nbsp;&amp;nbsp; });&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var basestreet = new ArcGISTiledMapServiceLayer("&lt;A href="http://server.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://server.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer&lt;/A&gt;", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: 'street'
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; basestreet.setVisibility(true);
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var shorelineAssessmentMapperLayer = new ArcGISDynamicMapServiceLayer("&lt;A href="http://cmap.vims.edu/arcgis/rest/services/ShorelineAssessmentMapper/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://cmap.vims.edu/arcgis/rest/services/ShorelineAssessmentMapper/MapServer&lt;/A&gt;", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "Shoreline Assessment Mapper"
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; shorelineAssessmentMapperLayer.setVisibility(true);
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayers([basestreet, shorelineAssessmentMapperLayer]);

&amp;nbsp;&amp;nbsp;&amp;nbsp; var myWidget = new LayerList({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layers: [{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer: shorelineAssessmentMapperLayer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showLegend: true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showSubLayers: true
&amp;nbsp;&amp;nbsp;&amp;nbsp; },"layerList");
&amp;nbsp;&amp;nbsp;&amp;nbsp; myWidget.startup();&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:15:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246117#M22801</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2021-12-11T12:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246118#M22802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan try adding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input#layerList_checkbox_0 {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; visibility: hidden;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to the css.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing at the checkbox # it might be a different one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a link to the site? It would be easier to have the whole code or the link so I can play with the css .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 16:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246118#M22802</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2016-04-11T16:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246119#M22803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great, thanks!! I'll give that a shot, appreciate it!&amp;nbsp; Here's a link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://http://cmap2.vims.edu/SAM/ShorelineAssessmentMapper.html"&gt;http://cmap2.vims.edu/SAM/ShorelineAssessmentMapper.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 16:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246119#M22803</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2016-04-11T16:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246120#M22804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan I cannot reach the link. This is what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/194537_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 16:23:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246120#M22804</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2016-04-11T16:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246121#M22805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link is missing a : behind the http&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cmap2.vims.edu/SAM/ShorelineAssessmentMapper.html" title="http://cmap2.vims.edu/SAM/ShorelineAssessmentMapper.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Layer List Dijit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for making changes to the items in your layout, you should get familiar with the browsers' development tools. In &lt;A href="https://developer.chrome.com/devtools" rel="nofollow noopener noreferrer" target="_blank"&gt;Chrome&lt;/A&gt;, for example, right click on the element and select "&lt;A href="https://developer.chrome.com/devtools/docs/dom-and-styles" rel="nofollow noopener noreferrer" target="_blank"&gt;Inspect&lt;/A&gt;" to get this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="194547" alt="inspectcheckbox.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/194547_inspectcheckbox.png" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add css styles to see how they affect your layout. In this case,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;input#layerList_checkbox_0 {
&amp;nbsp;&amp;nbsp;&amp;nbsp; visibility: hidden;
}&lt;/PRE&gt;&lt;P&gt;will hide just the checkbox for the top item.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246121#M22805</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T12:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246122#M22806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rickey, not sure why the link on here isn't working but &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fcmap2.vims.edu%2FSAM%2FShorelineAssessmentMapper.html" rel="nofollow" target="_blank"&gt;http://cmap2.vims.edu/SAM/ShorelineAssessmentMapper.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;is the address.&amp;nbsp; Again, I do appreciate your help...&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 16:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246122#M22806</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2016-04-11T16:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246123#M22807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks so much Ken, as a newbie I had no clue about that and it's incredibly useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 17:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246123#M22807</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2016-04-11T17:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246124#M22808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken, thanks much for the code above, worked great. But I'm stuck on changing the properties of the&amp;nbsp; label associated with the checkbox.&amp;nbsp; I've tried a couple of things I found with no luck&amp;nbsp; The problem is the label doesn't have an ID, just a "for" property, so I don't know how to reference it in CSS.&amp;nbsp; And adding an ID to the label isn't possible because (please correct me if I'm wrong)) the HTML for the LayerList is generated dynamically when the application is run.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 19:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246124#M22808</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2016-04-11T19:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246125#M22809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's how to select that label&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;label[for=layerList_checkbox_0] {
&amp;nbsp;&amp;nbsp;&amp;nbsp; font-weight: bold;
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:15:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246125#M22809</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T12:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: is there any way to customize individual elements in a LayerList?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246126#M22810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks once more!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 20:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-customize-individual-elements/m-p/246126#M22810</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2016-04-11T20:15:30Z</dc:date>
    </item>
  </channel>
</rss>

