Guest User

Untitled

a guest
Jul 21st, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. var rootPanel;
  2.  
  3. Ext.setup({
  4.  
  5. tabletStartupScreen: 'Default-Landscape.png',
  6. phoneStartupScreen: 'Default-Landscape.png',
  7. icon: 'icon.png',
  8. glossOnIcon: true,
  9.  
  10. onReady: function () {
  11.  
  12. var CreateUserFields = [
  13. {
  14. xtype: 'emailfield',
  15. placeHolder: 'Username',
  16. name: 'Username',
  17. id: 'Username',
  18. required: true
  19. }, {
  20. xtype: 'passwordfield',
  21. placeHolder: 'Password',
  22. name: 'Password',
  23. required: true
  24. }, {
  25. xtype: 'checkboxfield',
  26. id: 'RememberMe',
  27. name: 'RememberMe',
  28. label: 'Save login?',
  29. labelWidth: '40%'
  30. },
  31. {
  32. xtype: 'button',
  33. text: 'Login',
  34. ui: 'confirm',
  35. style: 'margin:2%;',
  36. handler: function() { doLogin(); }
  37. }
  38. ];
  39.  
  40. function doLogin() {
  41.  
  42. }
  43.  
  44. var Create = new Ext.form.FormPanel({
  45. title: "Create",
  46. id: 'loginFormSet',
  47. iconCls: 'user',
  48. dockedItems: [{
  49. xtype: 'toolbar',
  50. title: 'Create User',
  51. ui: 'light'
  52. }],
  53. items: [ CreateUserFields ]
  54. });
  55.  
  56. var SendMessage = new Ext.Panel({
  57. title: "Send",
  58. iconCls: 'compose',
  59. html: "Send Message From Here",
  60. dockedItems: [{
  61. xtype: 'toolbar',
  62. title: 'Send a Message',
  63. ui: 'light'
  64. }]
  65. });
  66.  
  67. var CheckMessages = new Ext.Panel({
  68. title: "Check",
  69. iconCls: 'download',
  70. html: "Check Messages From Here",
  71. dockedItems: [{
  72. xtype: 'toolbar',
  73. title: 'Check Messages',
  74. ui: 'light'
  75. }]
  76. });
  77.  
  78. var Groups = new Ext.Panel({
  79. title: "Groups",
  80. iconCls: 'team',
  81. html: "List your friends and groups here",
  82. dockedItems: [{
  83. xtype: 'toolbar',
  84. title: 'Manage Groups',
  85. ui: 'light'
  86. }]
  87. });
  88.  
  89. var TabPanel = new Ext.TabPanel({
  90. flex: 1,
  91. tabBar: {
  92. dock: 'bottom',
  93. layout: {
  94. pack: 'center'
  95. }
  96. },
  97. plugins: [new Ext.ux.touch.SwipeTabs()],
  98. ui: 'light',
  99. cardSwitchAnimation: {
  100. type: 'slide',
  101. cover: true
  102. },
  103. items: [Create,SendMessage,CheckMessages,Groups],
  104. dockedItems: []
  105. });
  106.  
  107. rootPanel = new Ext.Panel({
  108. fullscreen: true,
  109. layout: {
  110. type: 'vbox',
  111. align: 'stretch'
  112. },
  113. items: [TabPanel],
  114. dockedItems: [{
  115. xtype: 'toolbar',
  116. title: 'GText'
  117. }]
  118. });
  119. }
  120. });
  121.  
  122. <!DOCTYPE html>
  123. <html>
  124. <head>
  125. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  126. <title>GText</title>
  127. <script src="lib/touch/sencha-touch.js" type="text/javascript"></script>
  128. <link href="lib/touch/resources/css/sencha-touch.css" rel="stylesheet" type="text/css" />
  129. <script src="lib/touch/src/index.js" type="text/javascript"></script>
  130. <script src="lib/touch/plugins/Ext.ux.touch.SwipeTabs.js" type="text/javascript"></script>
  131. </head>
  132. <body>
  133. </body>
  134. </html>
Add Comment
Please, Sign In to add comment