Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

31
LINES

< > BotCompany Repo | #1029956 // Test jstree [LIVE at http://jstree.gazelle.rocks/]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (3238L/17K).

1  
!7
2  
3  
cmodule TestJSTree > DynPrintLog {
4  
  set flag NoNanoHTTPD.
5  
  !include #1029545 // API for Eleu
6  
7  
  O html(IWebRequest req) {
8  
    new HTMLFramer1 framer;
9  
    framer.title = "Test jsTree";
10  
    framer.addInHead(loadJQuery2());
11  
    framer.addInHead(hscriptsrc("https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.10/jstree.min.js"));
12  
    framer.addInHead(hstylesheetsrc("https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.10/themes/default/style.min.css"));
13  
    framer.addInHead(hsansserif());
14  
    
15  
    framer.add(hdiv(
16  
      tag ul(
17  
        tag li("Root node 1"
18  
          + tag ul(
19  
              li("Child node 1", id := "child_node_1")
20  
            + li("Child node 2"))
21  
        )
22  
      + li("Root node 2")
23  
      ), id := "jstree"));
24  
    framer.add(hscript([[
25  
      $(function() {
26  
        $('#jstree').jstree();
27  
      });
28  
    ]]);
29  
    ret framer.render();
30  
  }
31  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1029956
Snippet name: Test jstree [LIVE at http://jstree.gazelle.rocks/]
Eternal ID of this version: #1029956/8
Text MD5: fdf02e63bb5a04480656364842787f21
Transpilation MD5: 3f32c65d9f3757befc5b8ed475078f48
Author: stefan
Category:
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-15 16:29:02
Source code size: 888 bytes / 31 lines
Pitched / IR pitched: No / No
Views / Downloads: 158 / 7651
Version history: 7 change(s)
Referenced in: [show references]