BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> Error Reports
  New Posts New Posts RSS Feed - Tree View Element, collapsed not working
  FAQ FAQ  Forum Search   Register Register  Login Login

Tree View Element, collapsed not working

 Post Reply Post Reply
Author
Message
XeroOne View Drop Down
Newbie
Newbie


Joined: Apr 30 2017
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote XeroOne Quote  Post ReplyReply Direct Link To This Post Topic: Tree View Element, collapsed not working
    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.
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: May 01 2017 at 1:32pm
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
Back to Top
XeroOne View Drop Down
Newbie
Newbie


Joined: Apr 30 2017
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote XeroOne Quote  Post ReplyReply Direct Link To This Post Posted: May 01 2017 at 6:46pm
Hi my index is up here

xeroonegaming.co.uk


Its 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
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: May 01 2017 at 10:36pm
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.
Back to Top
XeroOne View Drop Down
Newbie
Newbie


Joined: Apr 30 2017
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote XeroOne Quote  Post ReplyReply Direct Link To This Post Posted: May 02 2017 at 11:34am
Originally posted by Dmit OE Dmit OE wrote:

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.


Thanks

That javascript did the job.

A+


Edited by XeroOne - May 02 2017 at 11:35am
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.