Jstree Plugin - State undetermined

0

Hello,

If there is anyone knowledgeable about this plugin and can help me,

I know that a state key is sent as follows:

state: { disabled: false
         loaded: true
         opened: false
         selected: true }

So, my doubt is! Is it possible to include state in the undetermined ? it would look something like this:

state: { disabled: false
         loaded: true
         opened: false
         selected: true
         undetermined : true } *or false

I need to get the value true or false of parent PAI , depending on whether or not there are marked children, and then save to the database.

To get the array and what is selected or not, I'm using the method below:

That's all I have.

var jstree = [];
if ($('#jstree').find('.jstree-checkbox').length > 0) {
    jstree = $('#jstree').jstree(true).get_json('#', { 'flat': true });
}
    
asked by anonymous 12.09.2018 / 21:49

0 answers