miso-lynx
Copyright(C) 2016-2025 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Lynx.Element.ScrollView.Property

Contents

Description

 
Synopsis

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