View Full Version : Helpful Panel javascript overrides for 2.x

Feb 14, 2013, 5:06 PM
The following javascript methods were deprecated in 2.x. IMO, they shouldn't be since they are such good convenient methods. So here's a quick way to get them back.

Admin: feel free to move this to Examples and Extras if that's more appropriate

getTool: function (type) {
return this.down('tool[type=' + type + ']');

getBottomToolbar: function () {
return this.getDockedItems('toolbar[dock="bottom"]')[0];

getTopToolbar: function () {
return this.getDockedItems('toolbar[dock="top"]')[0];


Feb 15, 2013, 3:16 AM

Thank you for sharing!

Thread have been moved to Examples and Extras forum.

Feb 15, 2013, 3:02 PM
Hi @jchau,

+1, thank you for sharing.

Do you mind I will add the following breaking change item?

159. The Panel client side methods - getTool, getBottomToolbar, getTopToolbar - have be removed.

Here is a possible substitution. Thanks to a forum member @jchau.
http://forums.ext.net/showthread.php?23491 (http://forums.ext.net/showthread.php?23491&p=102696#post102696)