PDA

View Full Version : is there a way to fire events to all childs at any deep?



Dumbledore
1 Aug 2010, 10:36 PM
Good Morning...

is there a way to fire events to all childs at any deep? Like bubble, but fopr childs?

Bye, Dumbledore

Animal
1 Aug 2010, 11:16 PM
Call the fireEvent method.

Condor
1 Aug 2010, 11:37 PM
In combination with the cascade() method.

Animal
1 Aug 2010, 11:45 PM
Or the find or findBy methods.

I think there should be a CompositeComponent class to encapsulate a collection of Components and call common methods...



myContainer.queryComponent('field').fireEvent('valid');