BuckBazooka
7 Apr 2010, 9:31 PM
Hi,
I am trying the designer and I cannot find a way to add buttons at the bottom of a window.
I have a window with a grid panel inside, and I want to place at the bottom of the window a "close" button. In other words how can we set the "button" property of a window.
By hand this is easy but how do I do this with the designer?
buttons= [{text: 'New Accounting Record', iconCls:'addAccountingRecord', handler:onNewAccountingRecord},
{text: 'Save', handler:onSaveInvoice},
{text: 'Cancel', handler:onCancel}];
var w = new Ext.Window({
title: "Invoice: " + invoice.title,
maximizable: true,
width: 1200,
height: 500,
minWidth: 300,
minHeight: 200,
layout: 'fit',
plain: true,
bodyStyle: 'padding:5px;',
buttonAlign: 'center',
items: groupedPanel,
buttons: buttons
});
I am trying the designer and I cannot find a way to add buttons at the bottom of a window.
I have a window with a grid panel inside, and I want to place at the bottom of the window a "close" button. In other words how can we set the "button" property of a window.
By hand this is easy but how do I do this with the designer?
buttons= [{text: 'New Accounting Record', iconCls:'addAccountingRecord', handler:onNewAccountingRecord},
{text: 'Save', handler:onSaveInvoice},
{text: 'Cancel', handler:onCancel}];
var w = new Ext.Window({
title: "Invoice: " + invoice.title,
maximizable: true,
width: 1200,
height: 500,
minWidth: 300,
minHeight: 200,
layout: 'fit',
plain: true,
bodyStyle: 'padding:5px;',
buttonAlign: 'center',
items: groupedPanel,
buttons: buttons
});