Closed GoogleCodeExporter closed 9 years ago
My solution:
I added a new node attribute 'hidden'
$.ui.dynatree.nodedatadefaults = {
....
hidden: false, // is node hidden
then added a line #475
this.li.style.display = ( data.hidden ? "none" : "visible" )
this got me to the image shown in 'desired.png'
Original comment by graffle...@gmail.com
on 21 Jan 2014 at 6:32
> I've tried adding a class to the node (if it is hidden) with css:
'visibility: hidden'
have you tried to use CSS 'display: none' instead?
Original comment by moo...@wwwendt.de
on 21 Jan 2014 at 8:51
WRT idea to add 'display: none' instead... great idea... I just tried that.
It doesn't work because the display style is overridden by the dynatree-node
style which sets display: inline-block
The other problem is that the display:none should be on the <LI> not on the
<span>
see attached file "suggestionFailed.png"
Original comment by graffle...@gmail.com
on 22 Jan 2014 at 2:35
Attachments:
That would be a new feature, so it's rather a topic for the successor
'Fancytree'.
Have a look at the 'filter' extension there.
Original comment by moo...@wwwendt.de
on 25 Jan 2014 at 11:26
Original issue reported on code.google.com by
graffle...@gmail.com
on 21 Jan 2014 at 5:36Attachments: