Here is the extended method to show to hide the custom tools.
<script>
(function($){
function setVisible(target, visible){
var opts = $(target).panel('options');
var tc = $(target).panel('header').find('.panel-tool');
tc.find('.panel-tool-a').css('display', visible?'inline-block':'none');
if ($.isArray(opts.tools)){
for(var i=0; i<opts.tools.length; i++){
tc.find('.'+opts.tools[i].iconCls).css('display', visible?'inline-block':'none');
}
}
}
$.extend($.fn.panel.methods, {
showTools: function(jq){
return jq.each(function(){
setVisible(this, true);
});
},
hideTools: function(jq){
return jq.each(function(){
setVisible(this, false);
});
}
})
})(jQuery);
</script>
The updated example is availe from here:
http://code.reloado.com/oeasyrik1/43/edit#preview