Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

350 lines
9.7 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. Ext.onReady(function(){
  8. var SamplePanel = Ext.extend(Ext.Panel, {
  9. width: 500,
  10. height:250,
  11. style: 'margin-top:15px',
  12. bodyStyle: 'padding:10px',
  13. renderTo: 'docbody',
  14. html: Ext.example.shortBogusMarkup,
  15. autoScroll: true
  16. });
  17. new SamplePanel({
  18. title: 'Standard',
  19. tbar: [{
  20. xtype:'splitbutton',
  21. text: 'Menu Button',
  22. iconCls: 'add16',
  23. menu: [{text: 'Menu Button 1'}]
  24. },'-',{
  25. xtype:'splitbutton',
  26. text: 'Cut',
  27. iconCls: 'add16',
  28. menu: [{text: 'Cut Menu Item'}]
  29. },{
  30. text: 'Copy',
  31. iconCls: 'add16'
  32. },{
  33. text: 'Paste',
  34. iconCls: 'add16',
  35. menu: [{text: 'Paste Menu Item'}]
  36. },'-',{
  37. text: 'Format',
  38. iconCls: 'add16'
  39. }]
  40. });
  41. new SamplePanel({
  42. title: 'Multi columns',
  43. tbar: [{
  44. xtype: 'buttongroup',
  45. title: 'Clipboard',
  46. columns: 2,
  47. defaults: {
  48. scale: 'small'
  49. },
  50. items: [{
  51. xtype:'splitbutton',
  52. text: 'Menu Button',
  53. iconCls: 'add16',
  54. menu: [{text: 'Menu Item 1'}]
  55. },{
  56. xtype:'splitbutton',
  57. text: 'Cut',
  58. iconCls: 'add16',
  59. menu: [{text: 'Cut Menu Item'}]
  60. },{
  61. text: 'Copy',
  62. iconCls: 'add16'
  63. },{
  64. text: 'Paste',
  65. iconCls: 'add16',
  66. menu: [{text: 'Paste Menu Item'}]
  67. },{
  68. text: 'Format',
  69. iconCls: 'add16'
  70. }]
  71. },{
  72. xtype: 'buttongroup',
  73. title: 'Other Bogus Actions',
  74. columns: 2,
  75. defaults: {
  76. scale: 'small'
  77. },
  78. items: [{
  79. xtype:'splitbutton',
  80. text: 'Menu Button',
  81. iconCls: 'add16',
  82. menu: [{text: 'Menu Button 1'}]
  83. },{
  84. xtype:'splitbutton',
  85. text: 'Cut',
  86. iconCls: 'add16',
  87. menu: [{text: 'Cut Menu Item'}]
  88. },{
  89. text: 'Copy',
  90. iconCls: 'add16'
  91. },{
  92. text: 'Paste',
  93. iconCls: 'add16',
  94. menu: [{text: 'Paste Menu Item'}]
  95. },{
  96. text: 'Format',
  97. iconCls: 'add16'
  98. }]
  99. }]
  100. });
  101. new SamplePanel({
  102. title: 'Multi columns (No titles, double stack)',
  103. tbar: [{
  104. xtype: 'buttongroup',
  105. columns: 3,
  106. defaults: {
  107. scale: 'small'
  108. },
  109. items: [{
  110. xtype:'splitbutton',
  111. text: 'Menu Button',
  112. iconCls: 'add16',
  113. menu: [{text: 'Menu Item 1'}]
  114. },{
  115. xtype:'splitbutton',
  116. text: 'Cut',
  117. iconCls: 'add16',
  118. menu: [{text: 'Cut Menu Item'}]
  119. },{
  120. text: 'Copy',
  121. iconCls: 'add16'
  122. },{
  123. text: 'Paste',
  124. iconCls: 'add16',
  125. menu: [{text: 'Paste Menu Item'}]
  126. },{
  127. text: 'Format',
  128. iconCls: 'add16'
  129. }]
  130. },{
  131. xtype: 'buttongroup',
  132. columns: 3,
  133. defaults: {
  134. scale: 'small'
  135. },
  136. items: [{
  137. xtype:'splitbutton',
  138. text: 'Menu Button',
  139. iconCls: 'add16',
  140. menu: [{text: 'Menu Item 1'}]
  141. },{
  142. xtype:'splitbutton',
  143. text: 'Cut',
  144. iconCls: 'add16',
  145. menu: [{text: 'Cut Menu Item'}]
  146. },{
  147. text: 'Copy',
  148. iconCls: 'add16'
  149. },{
  150. text: 'Paste',
  151. iconCls: 'add16',
  152. menu: [{text: 'Paste Menu Item'}]
  153. },{
  154. text: 'Format',
  155. iconCls: 'add16'
  156. }]
  157. }]
  158. });
  159. new SamplePanel({
  160. title: 'Mix and match icon sizes to create a huge unusable toolbar',
  161. tbar: [{
  162. xtype: 'buttongroup',
  163. columns: 3,
  164. title: 'Clipboard',
  165. items: [{
  166. text: 'Paste',
  167. scale: 'large',
  168. rowspan: 3, iconCls: 'add',
  169. iconAlign: 'top',
  170. cls: 'x-btn-as-arrow'
  171. },{
  172. xtype:'splitbutton',
  173. text: 'Menu Button',
  174. scale: 'large',
  175. rowspan: 3,
  176. iconCls: 'add',
  177. iconAlign: 'top',
  178. arrowAlign:'bottom',
  179. menu: [{text: 'Menu Item 1'}]
  180. },{
  181. xtype:'splitbutton', text: 'Cut', iconCls: 'add16', menu: [{text: 'Cut Menu Item'}]
  182. },{
  183. text: 'Copy', iconCls: 'add16'
  184. },{
  185. text: 'Format', iconCls: 'add16'
  186. }]
  187. },{
  188. xtype: 'buttongroup',
  189. columns: 3,
  190. title: 'Other Actions',
  191. items: [{
  192. text: 'Paste',
  193. scale: 'large',
  194. rowspan: 3, iconCls: 'add',
  195. iconAlign: 'top',
  196. cls: 'x-btn-as-arrow'
  197. },{
  198. xtype:'splitbutton',
  199. text: 'Menu Button',
  200. scale: 'large',
  201. rowspan: 3,
  202. iconCls: 'add',
  203. iconAlign: 'top',
  204. arrowAlign:'bottom',
  205. menu: [{text: 'Menu Button 1'}]
  206. },{
  207. xtype:'splitbutton', text: 'Cut', iconCls: 'add16', menu: [{text: 'Cut Menu Item'}]
  208. },{
  209. text: 'Copy', iconCls: 'add16'
  210. },{
  211. text: 'Format', iconCls: 'add16'
  212. }]
  213. }]
  214. });
  215. new SamplePanel({
  216. title: 'Medium icons, arrows to the bottom',
  217. tbar: [{
  218. xtype: 'buttongroup',
  219. title: 'Clipboard',
  220. defaults: {
  221. scale: 'medium',
  222. iconAlign:'top'
  223. },
  224. items: [{
  225. xtype:'splitbutton',
  226. text: 'Menu Button',
  227. iconCls: 'add24',
  228. arrowAlign:'bottom',
  229. menu: [{text: 'Menu Item 1'}]
  230. },{
  231. xtype:'splitbutton',
  232. text: 'Cut',
  233. iconCls: 'add24',
  234. arrowAlign:'bottom',
  235. menu: [{text: 'Cut Menu Item'}]
  236. },{
  237. text: 'Copy',
  238. iconCls: 'add24',
  239. cls: 'x-btn-as-arrow'
  240. },{
  241. text: 'Paste',
  242. iconCls: 'add24',
  243. arrowAlign:'bottom',
  244. menu: [{text: 'Paste Menu Item'}]
  245. },{
  246. text: 'Format<br/>Stuff',
  247. iconCls: 'add24'
  248. }]
  249. },{
  250. xtype: 'buttongroup',
  251. title: 'Other Bogus Actions',
  252. defaults: {
  253. scale: 'medium',
  254. iconAlign:'top'
  255. },
  256. items: [{
  257. xtype:'splitbutton',
  258. text: 'Menu Button',
  259. iconCls: 'add24',
  260. arrowAlign:'bottom',
  261. menu: [{text: 'Menu Item 1'}]
  262. },{
  263. xtype:'splitbutton',
  264. text: 'Cut',
  265. iconCls: 'add24',
  266. arrowAlign:'bottom',
  267. menu: [{text: 'Cut Menu Item'}]
  268. },{
  269. text: 'Copy',
  270. iconCls: 'add24',
  271. cls: 'x-btn-as-arrow'
  272. },{
  273. text: 'Paste',
  274. iconCls: 'add24',
  275. arrowAlign:'bottom',
  276. menu: [{text: 'Paste Menu Item'}]
  277. },{
  278. text: 'Format',
  279. iconCls: 'add24',
  280. cls: 'x-btn-as-arrow'
  281. }]
  282. }]
  283. });
  284. new SamplePanel({
  285. title: 'Medium icons, text and arrows to the left',
  286. tbar: [{
  287. xtype:'buttongroup',
  288. items: [{
  289. text: 'Cut',
  290. iconCls: 'add24',
  291. scale: 'medium'
  292. },{
  293. text: 'Copy',
  294. iconCls: 'add24',
  295. scale: 'medium'
  296. },{
  297. text: 'Paste',
  298. iconCls: 'add24',
  299. scale: 'medium',
  300. menu: [{text: 'Paste Menu Item'}]
  301. }]
  302. }, {
  303. xtype:'buttongroup',
  304. items: [{
  305. text: 'Format',
  306. iconCls: 'add24',
  307. scale: 'medium'
  308. }]
  309. }]
  310. });
  311. new SamplePanel({
  312. title: 'Small icons, text and arrows to the left',
  313. tbar: [{
  314. xtype:'buttongroup',
  315. items: [{
  316. text: 'Cut',
  317. iconCls: 'add16',
  318. scale: 'small'
  319. },{
  320. text: 'Copy',
  321. iconCls: 'add16',
  322. scale: 'small'
  323. },{
  324. text: 'Paste',
  325. iconCls: 'add16',
  326. scale: 'small',
  327. menu: [{text: 'Paste Menu Item'}]
  328. }]
  329. }, {
  330. xtype:'buttongroup',
  331. items: [{
  332. text: 'Format',
  333. iconCls: 'add16',
  334. scale: 'small'
  335. }]
  336. }]
  337. });
  338. });