When attempting to call these functions they both result in the following error:

TypeError: Result of expression 'thumb.el' [undefined] is not an object.

I'm doing something like this:

this.togglePanel = new Ext.form.Toggle({});

then later:

this.togglePanel.toggle();

I've also tried setting the initial value:

this.togglePanel = new Ext.form.Toggle({
value : 1;
});

However this results in the background of the toggle appearing green, but the toggle switch is in the 'off' position.

Am I doing things incorrectly?