| Copyright | (C) 2016-2026 David M. Johnson |
|---|---|
| License | BSD3-style (see the file LICENSE) |
| Maintainer | David M. Johnson <code@dmj.io> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Miso.Native.X.Element.Webview.Method
Contents
Description
N.B. The Desktop-only cookies.* methods
(cookies.get cookies.set cookies.remove / cookies.flushStore)
are not modelled here. They can be invoked directly with
invokeExec if required.
Synopsis
- reload :: MisoString -> action -> (MisoString -> action) -> Effect context props model action
- eval :: MisoString -> MisoString -> action -> (MisoString -> action) -> Effect context props model action
Methods
reload :: MisoString -> action -> (MisoString -> action) -> Effect context props model action Source #
https://lynxjs.org/api/elements/built-in/webview.html#reload
Reloads the selected <webview>.
reload "#myWebview" Reloaded ReloadFailed
Arguments
| :: MisoString | |
| -> MisoString | JavaScript function to evaluate |
| -> action | |
| -> (MisoString -> action) | |
| -> Effect context props model action |
https://lynxjs.org/api/elements/built-in/webview.html#eval
Calls a JavaScript function inside the selected <webview>.
eval "#myWebview" "alert('hi')" Evaluated EvalFailed