menu.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  6. <title>Menu on Toolbar - jQuery EasyUI Mobile Demo</title>
  7. <link rel="stylesheet" type="text/css" href="../../themes/metro/easyui.css">
  8. <link rel="stylesheet" type="text/css" href="../../themes/mobile.css">
  9. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  10. <script type="text/javascript" src="../../jquery.min.js"></script>
  11. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  12. <script type="text/javascript" src="../../jquery.easyui.mobile.js"></script>
  13. </head>
  14. <body>
  15. <div class="easyui-navpanel">
  16. <header>
  17. <div class="m-toolbar">
  18. <div class="m-title">Menu on Toolbar</div>
  19. <div class="m-left">
  20. <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-man',plain:true"></a>
  21. </div>
  22. <div class="m-right">
  23. <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true"></a>
  24. <a href="javascript:void(0)" class="easyui-menubutton" data-options="iconCls:'icon-more',plain:true,hasDownArrow:false,menu:'#mm',menuAlign:'right'"></a>
  25. </div>
  26. </div>
  27. </header>
  28. <div id="mm" class="easyui-menu" style="width:150px;" data-options="itemHeight:30,noline:true">
  29. <div data-options="iconCls:'icon-undo'">Undo</div>
  30. <div data-options="iconCls:'icon-redo'">Redo</div>
  31. <div class="menu-sep"></div>
  32. <div>Cut</div>
  33. <div>Copy</div>
  34. <div>Paste</div>
  35. <div class="menu-sep"></div>
  36. <div>Toolbar</div>
  37. <div data-options="iconCls:'icon-remove'">Delete</div>
  38. <div>Select All</div>
  39. </div>
  40. <ul class="easyui-datalist" data-options="
  41. fit: true,
  42. lines: true,
  43. border: false,
  44. textFormatter: function(value){
  45. return '<a href\'javascript:void(0)\' class=\'datalist-link\'>' + value + '</a>';
  46. },
  47. onClickRow: function(index,row){
  48. $('#p2-title').html(row.text);
  49. $.mobile.go('#p2');
  50. }
  51. ">
  52. <li>Large</li>
  53. <li>Spotted Adult Female</li>
  54. <li>Venomless</li>
  55. <li>Rattleless</li>
  56. <li>Green Adult</li>
  57. <li>Tailless</li>
  58. <li>With tail</li>
  59. <li>Adult Female</li>
  60. </ul>
  61. </div>
  62. <div id="p2" class="easyui-navpanel">
  63. <header>
  64. <div class="m-toolbar">
  65. <span id="p2-title" class="m-title">Detail</span>
  66. <div class="m-left">
  67. <a href="javascript:void(0)" class="easyui-linkbutton m-back" plain="true" outline="true" onclick="$.mobile.back()">Back</a>
  68. </div>
  69. </div>
  70. </header>
  71. <div style="margin:50px 0 0;text-align:center">
  72. <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px;height:30px" onclick="$.mobile.back()">Go Back</a>
  73. </div>
  74. </div>
  75. </body>
  76. </html>