Closed GoogleCodeExporter closed 8 years ago
That's true, the classNames property only works on initialization.
You could instead call
$("ul.dynatree-container").toggleClass("scrolling")
and add some css after the standard style
ul.dynatree-container.scrolling {
overflow: scroll;
height: 300px;
}
Not tested, but you get the idea; anyway: no reason to modify the original JS
or CSS, I guess.
Original comment by moo...@wwwendt.de
on 31 Jul 2013 at 8:37
Thx for the tip.. now I am using:
$("#tree2 ul.dynatree-container").toggleClass("scrollbar", show) - and indeed
it works like a charm
Still it might be useful if you updated the doc to mention the "classNames"
related limitation of the "option" API.
Original comment by juergen....@gmail.com
on 31 Jul 2013 at 10:02
Original issue reported on code.google.com by
juergen....@gmail.com
on 30 Jul 2013 at 4:55