editable.html 903 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Editable Tree - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Editable Tree</h2>
  14. <p>Click the node to begin edit, press enter key to stop edit or esc key to cancel edit.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-panel" style="padding:5px">
  17. <ul id="tt" class="easyui-tree" data-options="
  18. url: 'tree_data1.json',
  19. method: 'get',
  20. animate: true,
  21. onClick: function(node){
  22. $(this).tree('beginEdit',node.target);
  23. }
  24. "></ul>
  25. </div>
  26. </body>
  27. </html>