PHP Classes

File: libs/Raptor/Component/systemBundle/Views/ui/templates/view/window.js.twig

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Raptor/Component/systemBundle/Views/ui/templates/view/window.js.twig   Download  
File: libs/Raptor/Component/systemBundle/Views/ui/templates/view/window.js.twig
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: 1,505 bytes
 

Contents

Class file image Download
Ext.define('{{name}}.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: 'name' }] }; this.buttons = [{ iconCls: 'icon-acept', text: 'Acept', action: 'save' }, { iconCls: 'icon-cancel', text: 'Cancel', scope: this, handler: this.close }] this.callParent(); } })