Questions tagged [jsTree] (10)

0
answer

How to know whether the item is selected or not updated jstree?

Tell me how to find out whether the item is selected or not, when clicking on it? $("#jsip-ajax").on("click", ".updated jstree-anchor", function(e) { var id = $("#jsip-ajax").updated jstree(true).get_node($(this)).id; /// how to know the vedeleniem });
jordyn31 asked April 8th 20 at 18:32
0
answer

How to change the icon when you click on the tree in the updated jstree?

How to change the icon when you click on the tree in the updated jstree? trying to do so $('#jsip-ajax a.updated jstree-clicked').each(function () { id = $(this).attr('id').split('_'); $(this).instance.set_icon($(this).attr('id').node, 'http://jstree.com/tree-icon.png'); });
Scarlett.Torphy asked April 8th 20 at 18:24
0
answer

How to get updated jstree of the data value?

Code of the parent branch:{"text": "PARENT GROUP (2022)", "data": {"level": 2022}, "children": [ {"text": "Some text..... In the code .bind("move_node.updated jstree", function (event, data) I need to get the value of level. node.parent returns the id which updated jstree he assigns at the time of rendering.
lavonne_May asked March 31st 20 at 21:35
0
answer

How to make sure that all of the default branch was opened?

Doboy day, tell me how to do so all the branches were initially opened. Tried to write state:opened but not out$('#jsproto-ajax').updated jstree({ "core": { "themes": {"responsive": false}, "check_callback": true, 'data': { 'url': function (node) { return (node.id === '#') ? ('/ajax/getProtoDictNew') : ('/ajax/getPro...
shayna.Hirthe asked March 24th 20 at 12:07
0
answer

Tree search updated jstree

Puffed manuals for updated jstree and yet there is the search tree. But we need a different. Filtration is required as the search in the bookmarks of Opera. Ie when you enter key words when typing js'om hide unnecessary nodes, and the coincidences just revealed.
nolan.Gleason asked October 8th 19 at 03:39
1
answer

Getting json-based list of the type ul

Hi! There is a list of nodes of the following type. It is necessary for him to run and get the list of IDs of elements in json format keeping the nesting in this format. The array should get id only those elements that have the classes updated jstree-undetermined and updated jstree-checked. I tried to solve the problem so...
nolan.Gleason asked October 7th 19 at 21:47
2
answers

How to get the selected nodes from the tree updated jstree?

Google gives many options, but some do not solve the problem, the other partially. Native function to get the list of selected nodes is not suitable, because it gives a single-level array aydishnikov. I also need to observe the nesting. My implementation looks like this — jsfiddle.net/DrqRu/ The function call on the event ....
nolan.Gleason asked October 7th 19 at 21:19
0
answer

Export checked nodes in the updated jstree?

I need to get the checked checkboxes nodes here in this format [{ "data": "Reference", "attr": { "id": "0",, "class": "reference" }, "children": [{ "data": "New node 1", "attr": { "id": "2" }, "state": "closed" }, { "data": "New node 2", "attr": { "id": "4" } }, { "data": "New node 3", "attr": { "id": "6" ...
nolan.Gleason asked October 7th 19 at 11:31
1
answer

How to add custom jquery plugin in mediawiki?

Installed mediawiki 1.19. It is already a set of scripts jQuery. I decided to use a custom jquery plug-ins.treewiew and jquery.updated jstree to his plate. Just throw the plugin in the folder with jquery to no avail — I'm thinking that probably somewhere have to register this plug-in your own — but where I have no idea. Sta...
lura93 asked October 7th 19 at 10:22
1
answer

How to initialize updated jstree ?

There is a plugin to create a catalog tree updated jstree. The task is to initialize the plugin after the ajax request returns html code of the list. It looks like this:function get_tree(){ var file = $("#file_tree").val(); $.ajax({ type: "POST", data: {'tree':file}, url: "json.php", dataType: "json", success: functi...
Delaney.Tro asked September 23rd 19 at 17:51