Tree View Element, collapsed not working |
Post Reply |
Author | |
XeroOne
Newbie Joined: Apr 30 2017 Status: Offline Points: 10 |
Post Options
Thanks(0)
Posted: Apr 30 2017 at 4:44am |
Hi all, im trying to make a tree view navigation on my site.
The problem I have, is that "Collapsed" check box does nothing, i have it ticked but its still Expanded on the page?? I have tried checking "Collapsed" in all the items within the tree, but still not working. Is there something im doing wrong, or is this a known issue? Thanks Alan.
|
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(0)
|
Hi,
I made a test; "Collapsed" collapses first-level branches, but not the "root" so the first-level links stay visible with "+" on the left where there sub-links/branches are. If you wish to collapse completely, put your element into a Collapsible Panel. If some issues remain, I'd need to see your website published online |
|
XeroOne
Newbie Joined: Apr 30 2017 Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Hi my index is up here
xeroonegaming.co.ukIts a very simple site, I only started putting it together last week. Just learning the basics :) Would be great if you could take a look at why its not collapsing, every link on that index is ticked "Collapse" Thanks in advance Alan. Edited by XeroOne - May 01 2017 at 6:47pm |
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(0)
|
I don't really know, are you sure you checked the property "Collapsed" on the element itself?
The workaround is to add a Code Block (Source) type Javascript with the code: $(function(){ // on page load $('#WE0b53b73260 ul:first').children('.OESZ_collapsable') .removeClass('OESZ_collapsable').addClass('OESZ_expandable').children('ul').hide(); }); This will force collapsing for the element with ID WE0b53b73260. |
|
XeroOne
Newbie Joined: Apr 30 2017 Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Thanks That javascript did the job. A+ Edited by XeroOne - May 02 2017 at 11:35am |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |