Skip to content

Commit 800eb94

Browse files
committed
add sampole parent event raising example.
1 parent a044a97 commit 800eb94

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,9 @@ To listen to an event from the widget in the parent application, you can use the
165165
```
166166

167167
You can see that the `windowListener` function is used to listen to events from the parent window with evebt payload that should be used to determine what widget should do.
168+
169+
### How to send event from parent application to widget
170+
171+
```javascript
172+
Typerefinery.Page.Events.emitEvent("notifydatarefresh", Typerefinery.Page.Events.compileEventData({}, "notifydatarefresh", "DATA_REFRESH", "notifydatarefresh", null));
173+
```

0 commit comments

Comments
 (0)