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
{{ message }}
This repository was archived by the owner on Oct 9, 2022. It is now read-only.
Note that input.getValue() returns a `CompletableFuture<String> <https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html>`_.
96
-
This is because it can take up to several hundred milliseconds to retrieve from the browser, and we don't want the application
97
-
to block if it can be avoided. Here we use Kotlin's very powerful `coroutines <https://kotlinlang.org/docs/reference/coroutines-overview.html>`_
98
-
features to avoid any unnecessary blocking.
92
+
Events can evaluate a JavaScript expression and send the result to the server, in this case we give it an
93
+
expression that will retrieve the value of an InputElement, conveniently provided by valueJsExpression.
99
94
100
-
.. note:: We discuss an even better way to read <input> values in the `Observer Pattern & State <https://docs.kweb.io/en/latest/state.html#binding-a-kvar-to-an-input-element-s-value>`_ section.
95
+
.. note:: See the `Observer Pattern & State <https://docs.kweb.io/en/latest/state.html#binding-a-kvar-to-an-input-element-s-value>`_ section for
0 commit comments