new Ext.Panel({...
tools:[{
id:'refresh',
qtip: 'Refresh form Data',
// hidden:true,
handler: function(event, toolEl, panel){
// refresh logic
}
}]
...})
id : String
Required. The type of tool to create. Values may betoggle (Created by default when collapsible is true)
close
minimize
maximize
restore
gear
pin
unpin
right
left
up
down
refresh
minus
plus
help
search
save
print
handler : Function
Required. The function to call when clicked. Arguments passed are:
event : Ext.EventObject
The click event.
toolEl : Ext.Element
The tool Element.
Panel : Ext.Panel
The host Panel
scope : Object
The scope in which to call the handler.
qtip : String/Object
A tip string, or a config argument to Ext.QuickTip.register
hidden : Boolean
True to initially render hidden.
on : Object
A listener config object specifiying event listeners in the format of an argument to addListener
posted on 2009-05-25 13:18
紫蝶∏飛揚↗ 阅读(1931)
评论(0) 编辑 收藏 所属分类:
EXTJS