Как я добавить сетку в центре лепестка panel..My сетки не принимая поля, style:{margintop:'10px'}
даже высоту: и ширину:Как добавить сетку на вкладку панель
вот моя сетка: -
{
title: 'Credit Card',
id:'credit_tab',
html:'html',
items:[{
xtype:'grid',
title: 'Simpsons',
resizable: true,
// margins:'20 20 20 20',
style:{marginLeft:'200px',marginTop:'30px'},
//store: Ext.data.StoreManager.lookup('simpsonsStore'),
columns: [
{ header: 'Name', dataIndex: 'name' },
{ header: 'Email', dataIndex: 'email', flex: 1 },
{ header: 'Phone', dataIndex: 'phone' }
],
// height: 100,
width: 100,
// renderTo:Ext.getBody()
}]
}
Использование макета [ 'center'] (https://docs.sencha.com/extjs/6.0/6.0.0-classic/#!/api/Ext.layout.container.Center) , см. мой ответ. – Greendrake