This content has been marked as final. Show 5 replies
"manofspirit" <firstname.lastname@example.org> wrote in message
> Helllo All
> I did a custom event class, imported it in main application, added event
> metatags in it, and dispatched this event along with my custom data !
> Works fine till above point
> now my question is
> how can i acknowledge that event in a nested component?
> Main Application - TileList Component - [Item renderer Component]
You'll need to make sure it bubbles, or have each level redispatch it.
From any component, you should be able to subscribe to the event using something like this:
Thanks for the reply
but problem is
I can dispatch an event and take it to the root by redispatching
But i dont know how to get a custom event from root and take it to its childs
First i need to sense it then i'll redispatch it
But im even unable to sense it!
Thanks, Ill try this approach
Could you please suggest something which works as "loosley coupled" ?
It works well, Thanks a lot!
but still have one question!
how do we recieve an event which is dispatched from main application
(without using your direct listener method)
Actually, i want to learn its loosley coupled part !