extjs add button to panel header

ExtJs - Adding tools dynamically to ExtJs Panels

Second consecutive blog post relating to adding something dynamically to an already rendered Html component, while the previous one was for adding buttons dynamically to jQuery UI dialogs here, this one is for adding tools dynamically to ExtJs Panels.