Skip to content

Commit

Permalink
#5706 Handler inside the Component Tree description
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiu committed Sep 10, 2024
1 parent 2fa5087 commit 2aedf66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/data/deck/learnneo/pages/guides/events/DomEvents.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ MainView = Neo.setupClass(MainView);

### Handler inside the Component Tree

When creating new Components, it can make sense to add the handler methods into the class.
A good example would be `tab.header.Toolbar`, where clicking on a Button will change the active Card.

You can use string based listeners. In case the handler method lives within the parent tree (any level),
we need to prefix there listeners with `up.`.

<pre data-neo>
import Container from '../container/Base.mjs';

Expand Down

0 comments on commit 2aedf66

Please sign in to comment.