I am using the jquery checkboxtree plugin which works great. I have a situation where I want to programmatically expand up until a certain node and I can't find any documentation or examples to determine who to do that (or if its possble)
I can see in the demo example that I can expand "down", like this:
$('#tabs-5-expand').click(function(){
$('#tree5').checkboxTree('expand', $('#tabs-5-node23'));
});
or I can programatically check a specific node like this:
$('#tabs-5-check').click(function(){
$('#tree5').checkboxTree('check', $('#tabs-5-node23'));
});
but this is not useful unless all of the parent nodes are already expanded. (if the parent nodes are collapsed, then you don't even realized that anything has happened)
I am trying to figure out if there is any way to "expand until" or "expand parents" where I could give reference to a node and that would expand all of the parent nodes above the referenced node?
Is this possible using this jquery plugin?
and I was hoping that I could expand multiple nodes using a class name like this
$('#tabs-5-expand').click(function(){ $('#tree5').checkboxTree('expand', $('.bluetabs')); });
Aucun commentaire:
Enregistrer un commentaire