| 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.Method
Contents
Description
Synopsis
- scrollTo :: MisoString -> ScrollTo -> (JSVal -> action) -> (MisoString -> action) -> Effect parent model action
- autoScroll :: MisoString -> AutoScroll -> (JSVal -> action) -> (MisoString -> action) -> Effect parent model action
- scrollIntoView :: MisoString -> ScrollIntoView -> (JSVal -> action) -> (MisoString -> action) -> Effect parent model action
- scrollBy :: MisoString -> ScrollBy -> (JSVal -> action) -> (MisoString -> action) -> Effect parent model action
- data ScrollTo = ScrollTo {}
- data AutoScroll = AutoScroll {}
- data ScrollIntoView = ScrollIntoView {}
- newtype ScrollBy = ScrollBy {}
- defaultScrollTo :: ScrollTo
- defaultAutoScroll :: AutoScroll
- defaultScrollIntoView :: ScrollIntoView
- defaultScrollBy :: ScrollBy
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 AutoScroll Source #
Constructors
| AutoScroll | |
Instances
| Show AutoScroll Source # | |
Defined in Miso.Lynx.Element.ScrollView.Method Methods showsPrec :: Int -> AutoScroll -> ShowS # show :: AutoScroll -> String # showList :: [AutoScroll] -> ShowS # | |
| Eq AutoScroll Source # | |
Defined in Miso.Lynx.Element.ScrollView.Method | |
| ToJSVal AutoScroll Source # | |
Defined in Miso.Lynx.Element.ScrollView.Method Methods toJSVal :: AutoScroll -> JSM JSVal Source # toJSValListOf :: [AutoScroll] -> JSM JSVal Source # | |
data ScrollIntoView Source #
Constructors
| ScrollIntoView | |
Fields
| |
Instances
| Show ScrollIntoView Source # | |
Defined in Miso.Lynx.Element.ScrollView.Method Methods showsPrec :: Int -> ScrollIntoView -> ShowS # show :: ScrollIntoView -> String # showList :: [ScrollIntoView] -> ShowS # | |
| Eq ScrollIntoView Source # | |
Defined in Miso.Lynx.Element.ScrollView.Method Methods (==) :: ScrollIntoView -> ScrollIntoView -> Bool # (/=) :: ScrollIntoView -> ScrollIntoView -> Bool # | |
| ToJSVal ScrollIntoView Source # | |
Defined in Miso.Lynx.Element.ScrollView.Method Methods toJSVal :: ScrollIntoView -> JSM JSVal Source # toJSValListOf :: [ScrollIntoView] -> JSM JSVal Source # | |
Constructors
| ScrollBy | |
Fields | |