<?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: Extend Checkbox Selection to Hover Area in LayerList Widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817511#M7092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure in the LayerListView.js look at the&amp;nbsp;_onRowTrClick function and have it call the&amp;nbsp;_onCkSelectNodeClick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2019 13:31:23 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-08-14T13:31:23Z</dc:date>
    <item>
      <title>Extend Checkbox Selection to Hover Area in LayerList Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817507#M7088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make my web app as simple as possible for users, especially those on small screens. Is there a way to allow the checkbox visibility functionality (switch on/off) to be spread across the entire :hover area?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, there is only a small area within the checkbox to select the layer be visible. I want users to have a larger target to hit to be able to toggle between layers very easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Gianna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 11:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817507#M7088</guid>
      <dc:creator>Gianna_BBSRC</dc:creator>
      <dc:date>2019-08-13T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Checkbox Selection to Hover Area in LayerList</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817508#M7089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've managed to alter style.css to add some formatting to the checkbox, but only to add a margin on the top and bottom of the checkbox. If I add either margin or padding to the left or right, it totally throws off the other elements (regardless of position and/or z-index).&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="selector token"&gt;.jimu-checkbox .checkbox&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="property token"&gt;margin-top&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; 10px&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="property token"&gt;margin-bottom&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; 10px&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The hover area content is 330px wide x 36px high, and the checkbox is 16x16. It feels like I've tried every combination of padding, margin, border, position, z-index. I'm not sure what I'm doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a complete novice at javascript, so I'm not sure if this problem can be solved programmatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be super appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817508#M7089</guid>
      <dc:creator>Gianna_BBSRC</dc:creator>
      <dc:date>2021-12-12T09:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Checkbox Selection to Hover Area in LayerList Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817509#M7090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gianna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What you are wanting t do is going to be problematic... Right now the whole list row has a chick event applied to open or close the legend. If you attempt to make the layer visibility toggle when clicking on the row then you will have competing actions and a UI that is not very intuitive or user friendly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 12:52:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817509#M7090</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-08-14T12:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Checkbox Selection to Hover Area in LayerList Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817510#M7091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should have mentioned that I've disabled the legend option, fold/unfold, and all actions which are shown in the context menu, so effectively, I only have a check box and a layer name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you've given me a hint about the click event to open and close the legend. Is there a way to change that click event to check and uncheck the checkbox?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 13:17:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817510#M7091</guid>
      <dc:creator>Gianna_BBSRC</dc:creator>
      <dc:date>2019-08-14T13:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Checkbox Selection to Hover Area in LayerList Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817511#M7092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure in the LayerListView.js look at the&amp;nbsp;_onRowTrClick function and have it call the&amp;nbsp;_onCkSelectNodeClick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 13:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817511#M7092</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-08-14T13:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Checkbox Selection to Hover Area in LayerList Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817512#M7093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I'm a total noob.&amp;nbsp;Do you have a bit of code I could put at the _onRowTrClick?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-javascript"&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 13:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817512#M7093</guid>
      <dc:creator>Gianna_BBSRC</dc:creator>
      <dc:date>2019-08-14T13:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Checkbox Selection to Hover Area in LayerList Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817513#M7094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;    _onRowTrClick&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerInfo&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; imageShowLegendDiv&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; layerTrNode&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; subNode&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; evt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;// this._changeSelectedLayerRow(layerTrNode);&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;// var fold = this._foldSwitch(layerInfo, imageShowLegendDiv, subNode);&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;// if(evt.ctrlKey || evt.metaKey) {&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;//   if(layerInfo.isRootLayer()) {&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;//     this.foldOrUnfoldAllRootLayers(fold);&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;//   } else {&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;//     this.foldOrUnfoldSameLevelLayers(layerInfo, fold);&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;//   }&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;// }&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; chk &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;query&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'.visible-checkbox-'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; layerInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
      chk&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;click&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817513#M7094</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Checkbox Selection to Hover Area in LayerList Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817514#M7095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works like a dream! I really appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 14:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extend-checkbox-selection-to-hover-area-in/m-p/817514#M7095</guid>
      <dc:creator>Gianna_BBSRC</dc:creator>
      <dc:date>2019-08-14T14:46:32Z</dc:date>
    </item>
  </channel>
</rss>

