Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. var MyBorderPanel = new Ext.Panel({
  2. layout: 'border',
  3. renderTo: 'command_display',
  4. cls: 'auto-width-tab-strip',
  5. height:800,
  6. items: [
  7. {
  8. region: 'west',
  9. title: 'item1: <?=ui::getURLField("item1")?>',
  10. split: true,
  11. width: 500,
  12. minSize: 100,
  13. maxSize: 900,
  14. layout: 'fit', // specify layout manager for items
  15. items: // this TabPanel is wrapped by another Panel
  16. baseTab
  17. },
  18. {
  19. region: 'center',
  20. title: 'item2 : <?=ui::getURLField("item2")?>',
  21. split: true,
  22. margins: '0 0 0 0',
  23. layout: 'fit', // specify layout manager for items
  24. items: // this TabPanel is wrapped by another Panel
  25. compareTab
  26. }
  27. ]
  28. });
  29.  
  30. var baseTab = new Ext.TabPanel({
  31. border: false, // already wrapped so don't add another border
  32. activeTab: 0, // second tab initially active
  33. items: [
  34. <?php
  35. $uihelper->perform("InitItem1Iteration");
  36. $comma = true;
  37. while($uihelper->hasNext("Item1Iteration"))
  38. {
  39. $uihelper->next("Item1Iteration");
  40. ?>
  41. <?=(!$comma?",":"")?>
  42. {
  43. title: 'some php code',
  44. id: 'some php code',
  45. autoScroll: true,
  46. contentEl: 'some php code',
  47. }
  48. <?php
  49. $comma = false;
  50. } ?>
  51. ]
  52. });
  53.  
  54. listeners: {
  55. scroller: {
  56. scroll: function(scroller, offset) {
  57. console.log(scroller, offset);
  58. }
  59. }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement