PHP Classes

File: web/bundles/examples/example/Grid/js/app/view/GenericWindow.js

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/bundles/examples/example/Grid/js/app/view/GenericWindow.js   Download  
File: web/bundles/examples/example/Grid/js/app/view/GenericWindow.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 2,232 bytes
 

Contents

Class file image Download
Ext.define('Grid.view.GenericWindow',{ extend:'Ext.Window', width:300, autoHeight:true, modal:true, alias: 'widget.genericwindow', autoShow: true, closeAction:'destroy', title:"Generic window", layout:'fit', initComponent:function(){ this.items = { labelAlign: 'top', frame: true, xtype: 'form', layout: 'anchor', bodyStyle: 'padding:5px 5px 5px 5px', defaults: {frame: true, anchor: '100%'}, items: [{ xtype: 'textfield', fieldLabel: 'Test field', allowBlank: false, maxLength: 40, width: '100%', labelAlign: 'top', name: 'nombre' },{ xtype: 'textfield', fieldLabel: 'Apellidos', allowBlank: false, maxLength: 40, width: '100%', labelAlign: 'top', name: 'apellidos' },{ xtype: 'textfield', fieldLabel: 'edad', allowBlank: false, maxLength: 40, width: '100%', labelAlign: 'top', name: 'edad' }] }; this.buttons = [{ iconCls: 'icon-acept', text: 'Acept', action: 'save' }, { iconCls: 'icon-cancel', text: 'Cancel', scope: this, handler: this.close }] this.callParent(); } })