855
Views
7
Comments
Solved
Event Handler can be defined at the Screen level?

The answer is given as false can anyone explain this.

2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello the simple answer is

Taking an example-

We have a block we have define an event on that block to communicate with Parent Screen , so when we call a block on a screen , So we will define a handler on Screen Level.

Now if we call that same block(child block) On another block, So in this case another block will become the parent block and you will define a handler on parent block.

Conclusion - Handlers are define on parent when we have a event on their child block.

I hope  you understand this.

Thanks 

Tousif

2022-04-15 04-42-41
Tanisha Mahendru

Hi,

Events are Created for blocks so handlers will be required for the communication and it can be done from child block to parent block/screen.

UserImage.jpg
Akash Chouhan

Hi

Mohammed Rizwan,

The answer is not purely wrong but it is wrong if you told both at the screen level, we create the event inside the block and handle it through the handler on the screen.


2022-07-14 13-58-54
Ridhima Shewani

Hi

I think have a look at this training video.

Hope it will help you

Regards

Ridhima Shewani

UserImage.jpg
Vishal Gangwal

Hi,

Interaction with the parent is done using events .

○ The Web Block triggers an event 

○ Parent handles (reacts to) the event from the block 

Regards

2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello the simple answer is

Taking an example-

We have a block we have define an event on that block to communicate with Parent Screen , so when we call a block on a screen , So we will define a handler on Screen Level.

Now if we call that same block(child block) On another block, So in this case another block will become the parent block and you will define a handler on parent block.

Conclusion - Handlers are define on parent when we have a event on their child block.

I hope  you understand this.

Thanks 

Tousif

UserImage.jpg
Vishwanath Holge

Hi ,

I think Q might be wrong , if ans if false they could have like ( only at scree level) otherwise answer of this quetion is true..

Regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.