Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var MyBorderPanel = new Ext.Panel({
- layout: 'border',
- renderTo: 'command_display',
- cls: 'auto-width-tab-strip',
- height:800,
- items: [
- {
- region: 'west',
- title: 'item1: <?=ui::getURLField("item1")?>',
- split: true,
- width: 500,
- minSize: 100,
- maxSize: 900,
- layout: 'fit', // specify layout manager for items
- items: // this TabPanel is wrapped by another Panel
- baseTab
- },
- {
- region: 'center',
- title: 'item2 : <?=ui::getURLField("item2")?>',
- split: true,
- margins: '0 0 0 0',
- layout: 'fit', // specify layout manager for items
- items: // this TabPanel is wrapped by another Panel
- compareTab
- }
- ]
- });
- var baseTab = new Ext.TabPanel({
- border: false, // already wrapped so don't add another border
- activeTab: 0, // second tab initially active
- items: [
- <?php
- $uihelper->perform("InitItem1Iteration");
- $comma = true;
- while($uihelper->hasNext("Item1Iteration"))
- {
- $uihelper->next("Item1Iteration");
- ?>
- <?=(!$comma?",":"")?>
- {
- title: 'some php code',
- id: 'some php code',
- autoScroll: true,
- contentEl: 'some php code',
- }
- <?php
- $comma = false;
- } ?>
- ]
- });
- listeners: {
- scroller: {
- scroll: function(scroller, offset) {
- console.log(scroller, offset);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement