javascript - ExtJS 4.2 - How can I add a table to a panel? -


i´m trying add panel don´t know how:

enter image description here

this table , container panel,and don´t know how in extjs 4.2,because nearest thing grid,but don´t want grid.

finally solved form panel. here code:

var tabla=new ext.form.panel({     bodypadding: '0 0 0 0',     margin:'0 5 0 5',     bodystyle: 'background-color:#f1f1f1;',     border:0,     items: [             {                 xtype: 'container',                 anchor: '100%',                 layout: 'hbox',                 items:[                        {                            xtype: 'container',                            flex: 1,                            layout: 'anchor',                            items:[                                   {                                       xtype:'textfield',                                       readonly:true,                                       anchor:'100%',                                       labelalign: 'top',                                       labelseparator: '',                                       fieldlabel: '--',                                       labelstyle: 'text-align: center;color:#f1f1f1;background-color:#f1f1f1;',                                       height:104,                                       fieldstyle: 'text-align: center;',                                       value:'nuevo'                                   }                            ]                        },                        {                            xtype: 'container',                            flex: 1,                            layout: 'anchor',                            items:[                                   {                                       xtype:'textfield',                                       readonly:true,                                       anchor:'100%',                                       labelalign: 'top',                                       labelseparator: '',                                       fieldlabel: '--',                                       labelstyle: 'text-align: center;color:#f1f1f1;background-color:#f1f1f1;',                                       fieldstyle: 'text-align: center;',                                       value:'ganado',                                       height:44                                   },                                   {                                       xtype:'textfield',                                       margin:'-5 0 0 0',                                       readonly:true,                                       anchor:'100%',                                       fieldstyle: 'text-align: center;',                                       value:'perdido',                                       height:30                                   },                                   {                                       xtype:'textfield',                                       readonly:true,                                       anchor:'100%',                                       fieldstyle: 'text-align: center;',                                       value:'pendiente',                                       height:30                                   }                            ]                        },                        {                            xtype: 'container',                            flex: 1,                            layout: 'anchor',                            items:[                                   {                                       xtype:'textfield',                                       anchor:'100%',                                       labelalign: 'top',                                       labelseparator: '',                                       fieldlabel: 'vigor',                                       labelstyle: 'text-align: center;background-color:#f1f1f1;',                                       readonly:true,                                       fieldstyle: 'text-align: right;',                                       height:44                                   },                                   {                                       xtype:'textfield',                                       margin:'-5 0 0 0',                                       readonly:true,                                       anchor:'100%',                                       fieldstyle: 'text-align: right;',                                       height:30                                   },                                   {                                       xtype:'textfield',                                       readonly:true,                                       anchor:'200%',                                       fieldstyle: 'text-align: right;',                                       height:30                                   }                            ]                        },                        {                            xtype: 'container',                            flex: 1,                            layout: 'anchor',                            items:[                                   {                                       xtype:'textfield',                                       anchor:'100%',                                       labelalign: 'top',                                       labelseparator: '',                                       fieldlabel: 'vencido',                                       labelstyle: 'text-align: center;background-color:#f1f1f1;',                                       readonly:true,                                       fieldstyle: 'text-align: right;',                                       height:44                                   },                                   {                                       xtype:'textfield',                                       margin:'-5 0 0 0',                                       readonly:true,                                       anchor:'100%',                                       fieldstyle: 'text-align: right;',                                       height:30                                   }                            ]                        }                  ]             },             {                 xtype: 'container',                 margin:'-5 0 0 0',                 anchor: '100%',                 layout: 'hbox',                 items:[                        {                            xtype: 'container',                            flex: 1,                            layout: 'anchor',                            items:[                                   {                                       xtype:'textfield',                                       readonly:true,                                       anchor:'100%',                                       height:90,                                       fieldstyle: 'text-align: center;',                                       value:'mantenimiento'                                   }                            ]                        },                        {                            xtype: 'container',                            flex: 1,                            layout: 'anchor',                            items:[                                   {                                       xtype:'textfield',                                       readonly:true,                                       anchor:'100%',                                       value:'ganado',                                       fieldstyle: 'text-align: center;',                                       height:30                                   },                                   {                                       xtype:'textfield',                                       margin:'-5 0 0 0',                                       readonly:true,                                       anchor:'100%',                                       fieldstyle: 'text-align: center;',                                       value:'perdido',                                       height:30                                   },                                   {                                       xtype:'textfield',                                       readonly:true,                                       anchor:'100%',                                       fieldstyle: 'text-align: center;',                                       value:'pendiente',                                       height:30                                   }                            ]                        },                        {                            xtype: 'container',                            flex: 1,                            layout: 'anchor',                            items:[                                   {                                       xtype:'textfield',                                       readonly:true,                                       anchor:'100%',                                       fieldstyle: 'text-align: right;',                                       height:30                                   },                                   {                                       xtype:'textfield',                                       margin:'-5 0 0 0',                                       readonly:true,                                       anchor:'100%',                                       fieldstyle: 'text-align: right;',                                       height:30                                   },                                   {                                       xtype:'textfield',                                       readonly:true,                                       anchor:'200%',                                       fieldstyle: 'text-align: right;',                                       height:30                                   }                            ]                        },                        {                            xtype: 'container',                            flex: 1,                            layout: 'anchor',                            items:[                                   {                                       xtype:'textfield',                                       readonly:true,                                       anchor:'100%',                                       fieldstyle: 'text-align: right;',                                       height:30                                   },                                   {                                       xtype:'textfield',                                       margin:'-5 0 0 0',                                       readonly:true,                                       anchor:'100%',                                       fieldstyle: 'text-align: right;',                                       height:30                                   }                            ]                        }                  ]             }     ] }); 

and image of result: enter image description here


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -