Treeview - Forum

Forum Navigation
You need to log in to create posts and topics.

Treeview

Hello
I would like to know if someone has already developed a treeview for VNW, I did not find anything in the forum?

@phil78 please check this link:

https://www.jqueryscript.net/blog/Best-Tree-View-Plugins-jQuery.html

Most of the JavaScript libraries listed there can be used in VisualNEO Web directly or by creating a plugin.

Regards.

Vadim has reacted to this post.
Vadim

@luishp Thanks Luis, I know that but I am not an expert... I had found one example on the web and I tried to make a plugin with the source, but as is it the first time I don't really know how to translate it in VNW.
I have created functions corresponding to the javascript functions. But I don't know if the classes should be declared that way, and I think it should be bound to a container but I'm not sure how to do it.
Can you guide me on this little example, It would help me to master better?

Uploaded files:
  • You need to login to have access to uploads.

@phil78 what JavaScript library are you using? It seems you have not included any external file(s).

@luishp  Hello Luis, I am sorry I tried to find again the source on the web without success as I have purged my cache and history.

Forget my sample I will try to build one with another source. But can you tell me how we call an external library in a VNW plugin if there is one ?

Forget my sample I will try to build one with another source. But can you tell me how we call an external library in a VNW plugin if there is one ?

@phil78 Just include it in the Plugin Generator "files" tab and it will be automaticaly included in your projects whenever you call any of your plugin action commands.

Regards.

Hi @luishp

This time I was more serious but I still need your help. So I'm attaching my plugin, my demo, and the treejs-master library that I downloaded.
1 Do I have to load other files than tree.min.js in the plugin ?
2 I relied on the readme.md file to build the functions, but I'm not sure of the type of parameter to use for each function, I have a crash with the set functions, and I also have a doubt on the use or not of the return.
3 During the execution there is a crash with paTreeViewInit that I don't understand because the json is valid: "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"

4 all buttons are in error "TypeError: $App.MyTree is undefined" but I think it's due to the initialization crash.

best regards

 

 

Uploaded files:
  • You need to login to have access to uploads.

@phil78 please share the link to the original library and documentation.
If I have time I will try to take a look at the original library and generate a start point plugin for you.
To tell you the truth I don't undertand your code. You have defined some functions but you don't call them anywhere.
Regards.

@luishp  Thank you for taking some time for me, it will allow me to be more autonomous in the future.

Are you talking about the 3 parameters of the initialization ( beforeload, afterload, on change)? I didn't code anything because I don't understand how the interaction between WNW and javascript works. The description is in readme.md but in my opinion they should be coded directly in VNW with an implicit parameter TreeID, and in fact what to put in the plugin code?

here is the address of the library :

@phil78 I will try to take a look this weekend, but I can't promise anything :)