Skip to content

Instantly share code, notes, and snippets.

@kwk
Created September 21, 2011 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwk/1232332 to your computer and use it in GitHub Desktop.
Save kwk/1232332 to your computer and use it in GitHub Desktop.
Extract from app.js
// How can I modify my viewport (maybe use a Panel instead?) to render to my <div> ???
var queueMonitorPanel = Ext.create('Ext.Viewport', {
// renderTo : 'queue-monitor-container', // This is the <div> I want to render to
id : 'MyQueueMonitorGrid',
stateId : 'queue_monitor_grid',
layout: {
type: 'border',
padding: 1
},
defaults: {
split: true
},
items: [{
region: 'center',
layout: {
type: 'vbox',
padding: 0,
align: 'stretch'
},
items: [{
xtype: 'queuegrid',
itemId: 'queuegrid',
invalidateScrollerOnRefresh: false,
store: queueStore
}]
},{
region: 'east',
width: '50%',
layout: {
type: 'vbox',
padding: 0,
align: 'stretch'
},
items: [{
xtype: 'queueagentgrid',
itemId: 'queueagentgrid',
store: queueAgentStore,
flex: 1
},{
xtype: 'queuecallergrid',
store: queueCallerStore,
flex: 1
}],
//defaults:{margins:'0 0 5 0'},
}]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment