Hi,

I have a customized SelectBox, which needs a different arrow in preselected
state.
As using the following in source build works fine it throws an error when
using the builded qooxdoo app.

In the SelectBox Composite Parent I register a listener for changeDecorator:
this.addListener( "changeDecorator", this.__preselectAction, this );

this.__preselectAction looks as follows:
__preselectAction: function(e) {
        if( this.hasState( "firstcurrent" ) ) {
                this.__combo.addState("preselected");
                this.__combo.__childControls.arrow.addState("preselected");     
                        
        } else {
                this.__combo.removeState("preselected");
                this.__combo.__childControls.arrow.removeState("preselected");  
                        
        }
}

The Error in Firebug Console (only when using builded qooxdoo app):
this.__oX.__childControls is undefined
[Break on this error] this.__oX.__childControls.arrow.addState(m); 

Can anyone help?
Yes, I'am new to qooxdoo :)
Thanks a lot

el_migu_el
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/SelectBox-change-Arrow-appereance-tp4978592p4978592.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to