<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>UX - Collapse TOC - v12</title><link>https://www.aras.com/community/f/development/9471/ux---collapse-toc---v12</link><description>I&amp;#39;d really like to collapse this tree dijit widget. I know it is possible: 
 https://dojotoolkit.org/reference-guide/1.10/dijit/Tree-examples.html 
 onclick=&amp;quot;mytree.collapseAll();&amp;quot; 
 But, where!? This should be a simple button add and oh-so-convenient</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: UX - Collapse TOC - v12</title><link>https://www.aras.com/community/thread/4765?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 14:43:56 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:9f7ce8bb-3d59-442c-812f-d5adf3e36790</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hi Neil,&lt;/p&gt;
&lt;p&gt;I&amp;#39;d recommend taking a look at the &lt;a href="https://github.com/ArasLabs/toc-search-bar"&gt;TOC Search Bar&lt;/a&gt; community project for an example of both how to add a UI element to the TOC as well as how to manipulate the TOC itself.&amp;nbsp;This project also take a bit of a brute force approach and uses a lot of jQuery to manipulate the&amp;nbsp;classes of the TOC elements to both hide and expand them.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Christopher Gillis&lt;/p&gt;
&lt;p&gt;Aras Labs Software Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UX - Collapse TOC - v12</title><link>https://www.aras.com/community/thread/4757?ContentTypeID=1</link><pubDate>Mon, 13 Apr 2020 20:27:48 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:730d2480-873a-435d-8205-54e933bedfbd</guid><dc:creator>neil.lindberg</dc:creator><description>&lt;p&gt;Well, while this works it doesn&amp;#39;t seem to update whatever dojo has in memory. It&amp;#39;s &amp;quot;Brute force&amp;quot; of sorts.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;onclick=&amp;quot;${() =&amp;gt; Array.from(document.getElementsByClassName(&amp;#39;aras-nav__parent aras-nav__parent_expanded&amp;#39;)).forEach(e =&amp;gt; e.classList.remove(&amp;#39;aras-nav__parent_expanded&amp;#39;))}&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/3/pastedimage1586809649161v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UX - Collapse TOC - v12</title><link>https://www.aras.com/community/thread/4756?ContentTypeID=1</link><pubDate>Mon, 13 Apr 2020 19:54:31 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2905a88f-2c05-4f2e-a8bc-e4862465866f</guid><dc:creator>neil.lindberg</dc:creator><description>&lt;p&gt;NOTE: Open a TOC item, such as &amp;quot;Documents&amp;quot;, and then:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;document.getElementsByClassName(&amp;#39;aras-nav__parent aras-nav__parent_expanded&amp;#39;)[0].classList.remove(&amp;#39;aras-nav__parent_expanded&amp;#39;)&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>