Lines Matching refs:node

700 							if(data.node.id === '#' && !this._data.core.loaded) {
2238 draw_children : function (node) { argument
2239 var obj = this.get_node(node),
2246 node = this.get_node(node, true);
2247 if(!node || !node.length) { return false; } // TODO: quick toggle
2249 node.children('.jstree-children').remove();
2250 node = node[0];
2258 node.appendChild(k);
2270 redraw_node : function (node, deep, is_callback, force_render) { argument
2271 var obj = this.get_node(node),
2289node = !document.querySelector ? document.getElementById(obj.id) : this.element[0].querySelector('…
2290 if(!node) {
2302 node = $(node);
2304 par = node.parent().parent()[0];
2308 ind = node.index();
2311 if(!deep && obj.children.length && !node.children('.jstree-children').length) {
2315 old = node.children('.jstree-children')[0];
2317 f = node.children('.jstree-anchor')[0] === document.activeElement;
2318 node.remove();
2322 node = _node.cloneNode(true);
2330 node.setAttribute(i, obj.li_attr[i]);
2340 node.setAttribute('aria-selected', !!obj.state.selected);
2341 node.setAttribute('aria-level', obj.parents.length);
2342 node.setAttribute('aria-labelledby', obj.a_attr.id);
2344 node.setAttribute('aria-disabled', true);
2352 node.setAttribute('aria-expanded', (obj.state.opened && obj.state.loaded) );
2357 node.id = obj.id;
2358 node.className = c;
2364 node.childNodes[1].setAttribute(j, obj.a_attr[j]);
2372 node.childNodes[1].className = 'jstree-anchor ' + c;
2376 node.childNodes[1].childNodes[0].className += ' jstree-themeicon-hidden';
2379 node.childNodes[1].childNodes[0].className += ' ' + obj.icon + ' jstree-themeicon-custom';
2382 node.childNodes[1].childNodes[0].style.backgroundImage = 'url('+obj.icon+')';
2383 node.childNodes[1].childNodes[0].style.backgroundPosition = 'center center';
2384 node.childNodes[1].childNodes[0].style.backgroundSize = 'auto';
2385 node.childNodes[1].childNodes[0].className += ' jstree-themeicon-custom';
2390 node.childNodes[1].appendChild(d.createTextNode(obj.text));
2393 node.childNodes[1].innerHTML += obj.text;
2404 node.appendChild(k);
2407 node.appendChild(old);
2429 par.insertBefore(node, par.childNodes[ind]);
2432 par.appendChild(node);
2437 node.childNodes[1].focus();
2448 return node;
2674 …function(node, status) { if(status && this.is_parent(node)) { this.open_all(node, animation, origi… argument
3452 create_node : function (par, node, pos, callback, is_loaded) { argument
3458 return this.load_node(par, function () { this.create_node(par, node, pos, callback, true); });
3460 if(!node) { node = { "text" : this.get_string('New node') }; } class in AnonymousFunctiona82bfad28f00
3461 if(typeof node === "string") { node = { "text" : node }; } class in AnonymousFunctiona82bfad28f00
3462 if(node.text === undefined) { node.text = this.get_string('New node'); }
3492 if(!node.id) { node.id = true; }
3493 if(!this.check("create_node", node, par, pos)) {
3497 if(node.id === true) { delete node.id; }
3498 node = this._parse_model_from_json(node, par.id, par.parents.concat());
3499 if(!node) { return false; }
3500 tmp = this.get_node(node);
3502 dpc.push(node);
3510 node = tmp;
3515 tmp[pos] = node.id;
3519 if(callback) { callback.call(this, this.get_node(node)); }
3528 …this.trigger('create_node', { "node" : this.get_node(node), "parent" : par.id, "position" : pos });
3529 return node.id;
3858 var t1, t2, dpc, tmp, i, j, node, old_par, new_par, old_ins, is_multi;
3922 node = old_ins ? old_ins.get_json(obj, { no_id : true, no_data : true, no_state : true }) : obj;
3923 if(!node) { return false; }
3924 if(node.id === true) { delete node.id; }
3925 node = this._parse_model_from_json(node, new_par.id, new_par.parents.concat());
3926 if(!node) { return false; }
3927 tmp = this.get_node(node);
3930 dpc.push(node);
4381 $.vakata.attributes = function(node, with_values) { argument
4382 node = $(node)[0];
4384 if(node && node.attributes) {
4385 $.each(node.attributes, function (i, v) {
4581 var obj = data.node,
4638 var obj = data.node,
6804 this.sort(data.parent || data.node.parent, false);
6805 this.redraw_node(data.parent || data.node.parent, true);
7239 this.create_node = function (par, node, pos, callback, is_loaded) { argument
7240 if(!node || node.text === undefined) {
7246 return parent.create_node.call(this, par, node, pos, callback, is_loaded);
7250 return parent.create_node.call(this, par, node, pos, callback, is_loaded);
7252 if(!node) { node = {}; }
7263 node.text = n;
7265 return parent.create_node.call(this, par, node, pos, callback, is_loaded);
7310 …this.get_node(data.node, true).find('.jstree-clicked').parent().children('.jstree-wholerow').addCl…
7313 if(e.type === "hover_node" && this.is_disabled(data.node)) { return; }
7314 …this.get_node(data.node, true).children('.jstree-wholerow')[e.type === "hover_node"?"addClass":"re…