freez
28 Aug 2008, 2:12 AM
Hi,
I want to add some image buttons on the header of a window.
I used tools[{...}] for that. but there are only some default buttons, like refresh, restore, gear etc. How can i add my own images in this place?
my code is..
win = desktop.createWindow({
id: id,
url:url,
title: name,
width: size[1],
height: size[0],
x: startX,
y: startY,
iconCls: 'bogus',
shim: false,
animCollapse: false,
border: false,
bodyBorder: false,
constrainHeader: true,
autoScroll: false,
showLoading: true,
layout: 'fit',
tools:[{
id:'refresh',...........// here i want my own image
qtip: 'Refresh form Data',
hidden:true,
handler: function(){alert('asdf');
refresh logic
}
}
How can i implement this???
any alternate way other than tools????
I want to add some image buttons on the header of a window.
I used tools[{...}] for that. but there are only some default buttons, like refresh, restore, gear etc. How can i add my own images in this place?
my code is..
win = desktop.createWindow({
id: id,
url:url,
title: name,
width: size[1],
height: size[0],
x: startX,
y: startY,
iconCls: 'bogus',
shim: false,
animCollapse: false,
border: false,
bodyBorder: false,
constrainHeader: true,
autoScroll: false,
showLoading: true,
layout: 'fit',
tools:[{
id:'refresh',...........// here i want my own image
qtip: 'Refresh form Data',
hidden:true,
handler: function(){alert('asdf');
refresh logic
}
}
How can i implement this???
any alternate way other than tools????