0
 Followers
2
 Likes

Rethrowing of events/Bubbling events

Frontend
New

Hi,

Given a screen with have multiple layers of webblocks (eg Webblock1, webblock11, webblock111) . If you throw an event from webblock 111, which should be handled in webblock1, this is now cumbersome. You need to specify a handler client action and rethrow the event. It would be nice if you could select an event with the same signature as the throwing event as a handler of the thrown event. this would make your code less verbose.

Een alternative would be to have bubbling events. An event could have property IsBubbling. Then the event can be handled not only by a direct parent but by a parent webblock higher in hierarchy

Regards,


Matthieu de Graaf

Created on 29 Nov 2018
Comments (2)

Changed the category to Frontend


The IsBubbling property is a great idea for something which is now really cumbersome.

views
92
Followers
0