| 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.Element.Frame.Property
Contents
Description
Synopsis
- src_ :: MisoString -> Attribute model action
- autoHeight_ :: Bool -> Attribute model action
- autoWidth_ :: Bool -> Attribute model action
- data_ :: Value -> Attribute model action
- enableMultiAsyncThread_ :: Bool -> Attribute model action
- globalProps_ :: Value -> Attribute model action
- presetHeight_ :: MisoString -> Attribute model action
- presetWidth_ :: MisoString -> Attribute model action
Property
src_ :: MisoString -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/frame.html#src
Sets the loading path for the <frame> resource. Supports http / https.
src_ "http://url-goes-here.com"
autoHeight_ :: Bool -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/frame.html#auto-height
When enabled, the <frame> adjusts its height to match the embedded page.
autoHeight_ True
Default Value: False
autoWidth_ :: Bool -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/frame.html#auto-width
When enabled, the <frame> adjusts its width to match the embedded page.
autoWidth_ True
Default Value: False
data_ :: Value -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/frame.html#data
Initial data (a JSON object) passed to the embedded <frame> page.
data_ (object [ "key" .= "value" ])
enableMultiAsyncThread_ :: Bool -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/frame.html#enable-multi-async-thread
Whether the embedded page runs on its own async thread.
enableMultiAsyncThread_ True
Default Value: False
globalProps_ :: Value -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/frame.html#global-props
Global properties (a JSON object) injected into the embedded <frame> page.
globalProps_ (object [ "theme" .= "dark" ])
presetHeight_ :: MisoString -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/frame.html#preset-height
Preset height of the <frame> before the embedded page loads, e.g. "100px"
or "100rpx".
presetHeight_ "100px"
presetWidth_ :: MisoString -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/frame.html#preset-width
Preset width of the <frame> before the embedded page loads, e.g. "100px"
or "100rpx".
presetWidth_ "100px"