Advertisement
Guest User

Untitled

a guest
May 7th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. <html ng-app="ionicApp">
  2. <head>
  3. <meta charset="utf-8">
  4. <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
  5.  
  6. <title>Side Menu Exposed On Large Viewport</title>
  7.  
  8. <link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet">
  9. <script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>
  10.  
  11. </head>
  12.  
  13. <body ng-controller="MainCtrl">
  14.  
  15. <ion-side-menus>
  16.  
  17. <fader></fader>
  18.  
  19. <ion-side-menu-content style="width:70%;">
  20. <ion-header-bar class="bar-balanced">
  21. <h1 class="title title-left"><i class="ion-cloud"></i> Go Cloud</h1>
  22. </ion-header-bar>
  23.  
  24. <ion-wallet-select ng-class="isWalletShown?'shown':'hidden'">
  25. <ion-item class="item-icon-right item-stable" ng-click="toggleWallet()">
  26. <i class="icon" ng-class="isWalletShown?'ion-arrow-up-b':'ion-arrow-down-b'"></i>
  27. Default
  28. </ion-item>
  29. <wallet-content>
  30. <ion-scroll style="height:100%;">
  31. <ion-item class="item-icon-left">
  32. <i class="icon ion-filing"></i>
  33. Total
  34. </ion-item>
  35. <ion-item class="item-icon-left">
  36. <i class="icon ion-filing"></i>
  37. Credit Card
  38. </ion-item>
  39. <ion-item class="item-icon-left">
  40. <i class="icon ion-filing"></i>
  41. Default
  42. </ion-item>
  43. </ion-scroll>
  44. <ion-footer-bar class="add-wallet">
  45. <h1 class="title">+ Add wallet</h1>
  46. </ion-footer-bar>
  47. </wallet-content>
  48. </ion-wallet-select>
  49.  
  50. <ion-content class="has-footer has-wallet">
  51. <ion-list>
  52. <ion-item>Transactions</ion-item>
  53. <ion-item>Debts</ion-item>
  54. <ion-item>Trends</ion-item>
  55. <ion-item>Categories</ion-item>
  56. <div class="item item-divider">PLANNING</div>
  57. <ion-item>Budget</ion-item>
  58. <ion-item>Savings</ion-item>
  59. </ion-list>
  60. </ion-content>
  61. <ion-footer-bar class="bar-energized premium-bar" ng-class="isWalletShown?'hidden':'shown'">
  62. <h1 class="title">GO PREMIUM</h1>
  63. </ion-footer-bar>
  64. </ion-side-menu-content>
  65.  
  66. <ion-side-menu side="right" width="{{width()}}" can-drag-menu>
  67. <ion-header-bar class="bar-balanced">
  68. <button menu-close class="button button-icon ion-navicon"></button>
  69. <h1 class="title">Credit card</h1>
  70. </ion-header-bar>
  71. <ion-content class="padding">
  72. <p>
  73. On a small viewport (less than 768px window width), the left menu will be hidden, but can be shown by swiping left to right, or toggling the button in the top left of the header. On a large viewport (greater than or equal to 768px), the left menu will stay open.
  74. </p>
  75. <p>
  76. Using <code>large</code> as the attribute's value is an alias to <code>(min-width:768px)</code> since it is the most common use-case. However, for added flexibility, any valid media query could be added as the value, such as <code>(min-width:600px)</code> or even multiple queries such as <code>(min-width:750px) and (max-width:1200px)</code>.
  77. </p>
  78. </ion-content>
  79. </ion-side-menu>
  80.  
  81. </ion-side-menus>
  82.  
  83. </body>
  84. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement