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.

54 lines
1.2 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 p = new Ext.Panel({
  9. title: 'My Panel',
  10. collapsible:true,
  11. renderTo: 'panel-basic',
  12. width:400,
  13. html: Ext.example.bogusMarkup
  14. });
  15. // preventBodyReset: true
  16. new Ext.Panel({
  17. title: 'A Panel with W3C-suggested body-html styling',
  18. preventBodyReset: true,
  19. renderTo: 'panel-reset-true',
  20. width: 400,
  21. html: html.join('')
  22. });
  23. // preventBodyReset: false
  24. new Ext.Panel({
  25. title: 'Same panel as above with preventBodyReset: false',
  26. normal: false,
  27. renderTo: 'panel-reset-false',
  28. width: 400,
  29. html: html.join('')
  30. });
  31. });
  32. // Some sample html
  33. var html = [
  34. '<h1>Heading One</h1>',
  35. '<h2>Heading Two</h2>',
  36. '<p>This is a paragraph with <strong>STRONG</strong>, <em>EMPHASIS</em> and a <a href="#">Link</a></p>',
  37. '<table>',
  38. '<tr>',
  39. '<td>Table Column One</td>',
  40. '<td>Table Column Two</td>',
  41. '</tr>',
  42. '</table>',
  43. '<ul>',
  44. '<li>Un-ordered List-item One</li>',
  45. '<li>Un-ordered List-item One</li>',
  46. '</ul>',
  47. '<ol>',
  48. '<li>Ordered List-item One</li>',
  49. '<li>Ordered List-item Two</li>',
  50. '</ol>',
  51. '<blockquote>This is a blockquote</blockquote>'
  52. ];