Copyright | (C) 2016-2025 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.Lynx.Element.ScrollView.Property
Contents
Description
Synopsis
- scrollOrientation_ :: MisoString -> Attribute action
- enableScroll_ :: Bool -> Attribute action
- initialScrollOffset_ :: MisoString -> Attribute action
- initialScrollToIndex_ :: MisoString -> Attribute action
- bounces_ :: Bool -> Attribute action
- upperThreshold_ :: MisoString -> Attribute action
- lowerThreshold_ :: MisoString -> Attribute action
- scrollBarEnable_ :: Bool -> Attribute action
Property
scrollOrientation_ :: MisoString -> Attribute action Source #
https://lynxjs.org/api/elements/built-in/scroll-view.html#scroll-orientation
Set scroll orientation for the scrollable container.
Default Value: "vertical"
enableScroll_ :: Bool -> Attribute action Source #
https://lynxjs.org/api/elements/built-in/scroll-view.html#enable-scroll
Sets whether to allow gesture dragging to scroll. Supports dynamic switching and takes effect on the next gesture. When scrolling is disabled, the user cannot scroll manually.
Default Value: True
initialScrollOffset_ :: MisoString -> Attribute action Source #
https://lynxjs.org/api/elements/built-in/scroll-view.html#initial-scroll-offset
Sets the absolute content offset distance during initial rendering (different from the offset concept in the scrollTo method). The horizontal or vertical direction is determined by `scroll-orientation`, and it only takes effect during the first render execution, not responding to subsequent changes.
initialScrollToIndex_ :: MisoString -> Attribute action Source #
https://lynxjs.org/api/elements/built-in/scroll-view.html#initial-scroll-to-index
Sets the child node to be positioned during initial rendering, only taking effect during the first render execution and not responding to subsequent changes.
bounces_ :: Bool -> Attribute action Source #
https://lynxjs.org/api/elements/built-in/scroll-view.html#bounces
- iOS* only
Declared on the <list-item> child node to control whether the node will be sticky at the bottom.
Default value: True
upperThreshold_ :: MisoString -> Attribute action Source #
https://lynxjs.org/api/elements/built-in/scroll-view.html#upper-threshold
Sets a scroll threshold (unit: px
), indicating how far from the top
or left before triggering the scrolltoupper
event.
lowerThreshold_ :: MisoString -> Attribute action Source #
https://lynxjs.org/api/elements/built-in/scroll-view.html#lower-threshold
Sets a scroll threshold (unit: px), indicating how far from the top or left before triggering the scrolltolower event.
scrollBarEnable_ :: Bool -> Attribute action Source #
https://lynxjs.org/api/elements/built-in/scroll-view.html#scroll-bar-enable
Enables the scrollbar, supporting dynamic switching.
Default Value: False