PDA

View Full Version : Accessing superclass properties



qbert65536
12 Oct 2010, 11:07 AM
I'd like to add a button to the NestedListed.bottomToolbar item, but when i do something like


afterRender: function ()
{
this.bottomToolbar.items.push( { xtype: "button",text: "FOO!" } );
TMC.views. MusicPanel.superclass.afterRender.call(this);
}

I get 'bottomToolbar undefined' .

How do I access superclass properties ?

Thanks!
Charlie

jay@moduscreate.com
12 Oct 2010, 11:18 AM
check the docs, there is no bottomToolbar property.

Also, you're not looking to access "Superclass properties" in this instance.

qbert65536
12 Oct 2010, 11:30 AM
I'm looking at the code, and in the initComponent function there is a this.bottomToolbar where they place the Back button, I'm trying to emulate this behavior.

Really I just want to dock a button on that top toolbar ( which for, some reason, seems to be referenced as bottomToolbar ).

qbert65536
12 Oct 2010, 12:54 PM
My mistake, I was accessing incorrectly.

Thanks,
Charlie