public/assets/plugins/pickletree/pickletree.js
/**
   * this method will check node and its family.
   * @param {object} node
   */
this method will check node and its family.
@param {object} node
this method will check node and its family . @param { object } node
checkNode(node) {
    let clength = node.childs.length;
    if (node.checkStatus && clength > 0) {
      node.foldedStatus = true;
      this.toggleNode(node);
    }
    if (typeof this.switchCallback == 'function') this.switchCallback(node);
    document.getElementById('ck_' + node.id).checked = node.checkStatus;
  }
checkNode ( node ) { let clength = node . childs . length ; if ( node . checkStatus && clength > 0 ) { node . foldedStatus = true ; this . toggleNode ( node ) ; } if ( typeof this . switchCallback == 'function' ) this . switchCallback ( node ) ; document . getElementById ( 'ck_' + node . id ) . checked = node . checkStatus ; }
this method will check node and its family.
this method will check node and its family .
//console.log(node); //then if is checked and folded unfold and open childs //make element looks like is folded //trigger callback if exists //check html element if family mode is open