extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
42 lines (37 loc) • 872 B
JavaScript
Ext.define('Aria.view.Window', {
extend: 'Ext.window.Window',
alias: 'widget.mysimplewindow',
height: 200,
minHeight: 100,
minWidth: 300,
width: 500,
scrollable: true,
title: 'ARIA Window',
closable: true,
constrain: true,
defaultFocus: 'textfield',
layout: 'fit',
items: [{
xtype: 'form',
layout: 'form',
padding: '10px',
ariaLabel: 'Enter your name',
items: [{
xtype: 'textfield',
fieldLabel: 'First Name'
}, {
xtype: 'textfield',
fieldLabel: 'Last Name'
}]
}],
dockedItems: {
dock: 'bottom',
items: [{
xtype: 'button',
text: 'Submit',
handler: function(btn) {
btn.up('window').close();
}
}]
}
});