You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/javascript.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,48 @@ class CallJavascriptView(UnicornView):
30
30
31
31
defhello(self):
32
32
self.call("hello", self.name)
33
+
34
+
## Call Method on Other Component
35
+
36
+
From a component, it is possible to call a method on another component. This is useful when you want to trigger a refresh or an update on another component.
The first argument to `call` is the name of the JavaScript function to call, which is `Unicorn.call`. The second argument is the name (or key) of the component to call. The third argument is the name of the method to call on that component.
0 commit comments