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).

!7

cmodule TestJSTree > DynPrintLog {
  set flag NoNanoHTTPD.
  !include #1029545 // API for Eleu

  O html(IWebRequest req) {
    new HTMLFramer1 framer;
    framer.title = "Test jsTree";
    framer.addInHead(loadJQuery2());
    framer.addInHead(hscriptsrc("https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.10/jstree.min.js"));
    framer.addInHead(hstylesheetsrc("https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.10/themes/default/style.min.css"));
    framer.addInHead(hsansserif());
    
    framer.add(hdiv(
      tag ul(
        tag li("Root node 1"
          + tag ul(
              li("Child node 1", id := "child_node_1")
            + li("Child node 2"))
        )
      + li("Root node 2")
      ), id := "jstree"));
    framer.add(hscript([[
      $(function() {
        $('#jstree').jstree();
      });
    ]]);
    ret framer.render();
  }
}

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: 223 / 7736
Version history: 7 change(s)
Referenced in: [show references]