1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- define({
- xtype: 'dialog',
- dialogId: 'dialog1',
- title: '可越位对话框',
- width: 650,
- height: 300,
- toolbar: [{
- text: '保存', iconCls: 'fa fa-save fa-lg', onClick: function () {
- $.yvan.msg('保存');
- }
- }, {
- text: '关闭', iconCls: 'fa fa-times fa-lg', onClick: function () {
- $(this).findWindow().window('close');
- }
- }],
- center: {
- items: [{
- xtype: 'form', items: [
- [
- { name: 'txt11', label: '输入框1.1' },
- { name: 'txt12', label: '输入框1.2' }
- ]]
- }]
- },
- onOpen: function () {
- console.log('onOpen');
- },
- onBeforeClose: function () {
- console.log('onBeforeClose');
- },
- onClose: function () {
- console.log('onClose');
- },
- onResize: function () {
- console.log('onResize');
- },
- onMove: function () {
- console.log('onMove');
- },
- buttons: [{
- text: '按钮3', iconCls: 'fa fa-times fa-lg', onClick: function () {
- $.yvan.msg('按钮3');
- }
- }, {
- text: '按钮4', iconCls: 'fa fa-times fa-lg', onClick: function () {
- $.yvan.msg('按钮4');
- }
- }, {
- text: '按钮5', iconCls: 'fa fa-times fa-lg', onClick: function () {
- $.yvan.msg('按钮5');
- }
- }]
- });
|