dropdown.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Tabs with DropDown - 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>Tabs with DropDown</h2>
  14. <p>This sample shows how to add a dropdown menu over a tab strip.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div id="tt" style="width:700px;height:250px">
  17. <div title="About" style="padding:10px">
  18. <p style="font-size:14px">jQuery EasyUI framework helps you build your web pages easily.</p>
  19. <ul>
  20. <li>easyui is a collection of user-interface plugin based on jQuery.</li>
  21. <li>easyui provides essential functionality for building modem, interactive, javascript applications.</li>
  22. <li>using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.</li>
  23. <li>complete framework for HTML5 web page.</li>
  24. <li>easyui save your time and scales while developing your products.</li>
  25. <li>easyui is very easy but powerful.</li>
  26. </ul>
  27. </div>
  28. <div title="My Documents" style="padding:10px">
  29. <ul class="easyui-tree" data-options="url:'tree_data1.json',method:'get',animate:true"></ul>
  30. </div>
  31. <div title="Help" style="padding:10px">
  32. This is the help content.
  33. </div>
  34. </div>
  35. <div id="mm">
  36. <div>Welcome</div>
  37. <div>Help Contents</div>
  38. <div data-options="iconCls:'icon-search'">Search</div>
  39. <div>Dynamic Help</div>
  40. </div>
  41. <script>
  42. $(function(){
  43. var p = $('#tt').tabs().tabs('tabs')[2];
  44. var mb = p.panel('options').tab.find('a.tabs-inner');
  45. mb.menubutton({
  46. menu:'#mm',
  47. iconCls:'icon-help'
  48. }).click(function(){
  49. $('#tt').tabs('select',2);
  50. });
  51. });
  52. </script>
  53. </body>
  54. </html>