View Full Version : Toggle component's setValue & toggle functions give an error

28 Oct 2010, 10:35 PM
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:


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?