<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SaulH</title>
    <description>The latest articles on DEV Community by SaulH (@saulhj).</description>
    <link>https://dev.to/saulhj</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F294522%2F33daf737-2b70-44ef-b94c-498b49ebda94.png</url>
      <title>DEV Community: SaulH</title>
      <link>https://dev.to/saulhj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saulhj"/>
    <language>en</language>
    <item>
      <title>Urgent help needed :(</title>
      <dc:creator>SaulH</dc:creator>
      <pubDate>Mon, 23 Nov 2020 06:53:07 +0000</pubDate>
      <link>https://dev.to/saulhj/urgent-help-needed-2m1c</link>
      <guid>https://dev.to/saulhj/urgent-help-needed-2m1c</guid>
      <description>&lt;p&gt;Hi folks, relative newb,&lt;/p&gt;

&lt;p&gt;I've been trying to finalise this for ages, but still quite lost, &amp;amp; fast running out of time:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/saulhj/toggle-at-top-of-the-page-to-expand-collapse-all-headers-elegant-solution-2jac"&gt;https://dev.to/saulhj/toggle-at-top-of-the-page-to-expand-collapse-all-headers-elegant-solution-2jac&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's muddied by the fact that all of the promising solutions out there; while great in a sandbox; &lt;/p&gt;

&lt;p&gt;Are tricky for a newb like me to work out how to readapt &amp;amp; integrate-nicely, into our "preexisting" project!&lt;/p&gt;

&lt;p&gt;Please, can I get some help ASAP!?  :(&lt;br&gt;
&lt;a class="comment-mentioned-user" href="https://dev.to/madsstoumann"&gt;@madsstoumann&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;More detail &amp;amp; background in that prior post.&lt;br&gt;
And newest progress updates will continue here.&lt;/p&gt;

&lt;p&gt;Thank you very much.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>css</category>
      <category>expand</category>
      <category>toggle</category>
    </item>
    <item>
      <title>Toggle at top of the page, to expand/collapse all headers -elegant solution?</title>
      <dc:creator>SaulH</dc:creator>
      <pubDate>Tue, 17 Nov 2020 14:29:09 +0000</pubDate>
      <link>https://dev.to/saulhj/toggle-at-top-of-the-page-to-expand-collapse-all-headers-elegant-solution-2jac</link>
      <guid>https://dev.to/saulhj/toggle-at-top-of-the-page-to-expand-collapse-all-headers-elegant-solution-2jac</guid>
      <description>&lt;p&gt;Hi folks, &lt;/p&gt;

&lt;p&gt;I'm about to implement something &lt;strong&gt;a bit&lt;/strong&gt; like the &lt;strong&gt;expand-all&lt;/strong&gt; | &lt;strong&gt;collapse-all&lt;/strong&gt; on this page (hopefully less tacky!): &lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm"&gt;http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;BUT, I'm still very green, so I was hoping some folks here can lend a fair bit of their experience &amp;amp; time?&lt;/p&gt;

&lt;p&gt;Screenshot of the project as implemented thus far is attached...&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sdHX5_5v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ple7mg97h5wg04s6gyfo.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sdHX5_5v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ple7mg97h5wg04s6gyfo.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I also have a copy of the main relevant files I'm working on, but it's all a bit private. So I hope you don't mind, but to those happy to help, I can share them via a pwd-protected OneDrive link?&lt;/p&gt;

&lt;p&gt;That screenshot doesn't show it yet, but I have already done a fair bit of the CSS side of things (using ARIA).&lt;/p&gt;

&lt;p&gt;To further flesh out what I'm thinking, I also have a bunch of pseudo-code:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Each of the collapsible tables should have a class, I’d need to;&lt;/p&gt;

&lt;p&gt;1 - Create a button in dashboard.ejs that calls a function. This function should:&lt;br&gt;
2 - Use a global Boolean declared at the start of Dashboard.js to indicate if the tabs should &amp;gt;be open or closed&lt;br&gt;
3- Get an array of all of the elements with the above class&lt;br&gt;
4 - For each element, check if it is currently open or closed, and simulate a click on the &amp;gt;element if I need to change it to match the Boolean&lt;br&gt;
5 - Change the appearance of the button to indicate what clicking on it should do&lt;br&gt;
(so, if clicking on it would expand everything, something like “EXPAND”, or “COLLAPSE” for &amp;gt;the opposite)&lt;/p&gt;

&lt;p&gt;Some further pseudo-code…&lt;/p&gt;

&lt;p&gt;1- Button/s for Expand/Collapse all tables&lt;br&gt;
2 - two-dimension array for storing if table is open or closed (e.g [table-name, &amp;gt;true/false]).&lt;br&gt;
3 - Update array if individual table is opened or closed&lt;br&gt;
4 - Refresh table array on location refresh&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Does this sound about right, missing steps or sub-steps? And what 'actual' code [CSS/HTML/js] must I use to implement it?&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
      <category>node</category>
    </item>
    <item>
      <title>Toggle at top of the page, to expand/collapse all headers -elegant solution?</title>
      <dc:creator>SaulH</dc:creator>
      <pubDate>Thu, 05 Nov 2020 03:18:55 +0000</pubDate>
      <link>https://dev.to/saulhj/toggle-at-top-of-the-page-to-expand-collapse-all-headers-elegant-solution-1p49</link>
      <guid>https://dev.to/saulhj/toggle-at-top-of-the-page-to-expand-collapse-all-headers-elegant-solution-1p49</guid>
      <description>&lt;p&gt;Hi folks, &lt;/p&gt;

&lt;p&gt;I'm about to implement something &lt;strong&gt;a bit&lt;/strong&gt; like the &lt;strong&gt;expand-all&lt;/strong&gt; | &lt;strong&gt;collapse-all&lt;/strong&gt; on this page (hopefully less tacky): &lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm"&gt;http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;BUT, I'm still very green, so was hoping some folks can lend a fair bit of their experience &amp;amp; time?&lt;/p&gt;

&lt;p&gt;Screenshot of the project as implemented this far is attached...&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sdHX5_5v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ple7mg97h5wg04s6gyfo.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sdHX5_5v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ple7mg97h5wg04s6gyfo.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I also have a copy of the main relevant files I'm working on, but it's all a bit private. So I hope you don't mind, but to those happy to help, may I please share via a pwd-protected OneDrive link?&lt;/p&gt;

&lt;p&gt;To further flesh out what I was thinking, &amp;amp; just to get the ball rolling. I also have a bunch of pseudo-code which I'll include in the DM, to continue discussing there -as/if needed.&lt;/p&gt;

</description>
      <category>html</category>
      <category>javascript</category>
      <category>css</category>
      <category>node</category>
    </item>
  </channel>
</rss>
