PDA

View Full Version : a fresh image button on panel title bar



chinull
8 Jul 2008, 12:45 AM
i know that i can use tbar to realize a image fresh button,and attach handler!
but is there any way to put a fresh button in the title bar ,and attach handler on expand or collapse event fire!

just like the Accordion Layout,when click the refresh button just fire(fresh the panel event and click other place fire just like Accordion Layout

thanks.

darrellmeyer
8 Jul 2008, 6:36 AM
Take a look at panel.getHeader().addTool(Component tool).

refresher
9 Apr 2009, 10:40 AM
Possible to put refresh tool into tbar?

I have this now:
tbar: new Ext.Toolbar({
items: [
'Display per Page:',
{ xtype: 'textfield', width: 25 },
{ text: 'refresh', handler: function() {//refresh logic}}
]
})

And need to replace the refresh button with refresh tool.