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.Method

Description

 
Synopsis

Methods

scrollTo :: MisoString -> ScrollTo -> (JSVal -> action) -> (MisoString -> action) -> Effect parent model action Source #

autoScroll :: MisoString -> AutoScroll -> (JSVal -> action) -> (MisoString -> action) -> Effect parent model action Source #

scrollIntoView :: MisoString -> ScrollIntoView -> (JSVal -> action) -> (MisoString -> action) -> Effect parent model action Source #

scrollBy :: MisoString -> ScrollBy -> (JSVal -> action) -> (MisoString -> action) -> Effect parent model action Source #

Types

data ScrollTo Source #

Constructors

ScrollTo 

Fields

Instances

Instances details
Show ScrollTo Source # 
Instance details

Defined in Miso.Lynx.Element.ScrollView.Method

Eq ScrollTo Source # 
Instance details

Defined in Miso.Lynx.Element.ScrollView.Method

ToJSVal ScrollTo Source # 
Instance details

Defined in Miso.Lynx.Element.ScrollView.Method

data ScrollIntoView Source #

Constructors

ScrollIntoView 

Fields

  • block :: MisoString

    Vertical alignment options: "start" aligns top | "center" centers | "end" aligns bottom

  • inline :: MisoString

    Horizontal alignment options: "start" aligns left | "center" centers | "end" aligns right

  • behavior :: MisoString

    "smooth" | "none" whether to animate scrolling

newtype ScrollBy Source #

Constructors

ScrollBy 

Instances

Instances details
Show ScrollBy Source # 
Instance details

Defined in Miso.Lynx.Element.ScrollView.Method

Eq ScrollBy Source # 
Instance details

Defined in Miso.Lynx.Element.ScrollView.Method

ToJSVal ScrollBy Source # 
Instance details

Defined in Miso.Lynx.Element.ScrollView.Method

Smart constructors