Skip to content

Instantly share code, notes, and snippets.

@imtiazahmad007
Last active October 13, 2015 22:37
Show Gist options
  • Save imtiazahmad007/ebaddc33fed7fc6e033d to your computer and use it in GitHub Desktop.
Save imtiazahmad007/ebaddc33fed7fc6e033d to your computer and use it in GitHub Desktop.
Ext.define('searchadmin.view.reports.Reports', {
extend: 'Ext.panel.Panel',
alias: 'widget.reports',
requires: [
'searchadmin.view.reports.ReportForm'
],
layout: 'vbox',
items : [{
region: 'center',
xtype: 'reportForm'
},
{
xtype: 'tabpanel',
width: 1025,
growMin: 355,
growMax: 450,
activeTab: 0,
items: [{
flex: 2,
border: false,
title: 'JSON Result',
layout: 'anchor',
// padding : '5 5 0 5',
defaults: {anchor: '100%'},
items: [ {
xtype: 'textarea',
itemId: 'searchResultsContainer',
grow: true,
width: 1025,
growMin: 355,
growMax: 450,
name: 'searchResult',
submitValue: false } ]
},
{
title: 'Grid View',
xtype: 'dynamicGrid',
itemId: 'dynamicGridId',
region: 'center',
grow: true,
width: 1025,
growMin: 355,
growMax: 450,
autoScroll: true
}]
}]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment