| 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.X.Element.ScrollCoordinator.Method
Contents
Description
Synopsis
- setFoldExpanded :: MisoString -> MisoString -> Bool -> action -> (MisoString -> action) -> Effect context props model action
Methods
Arguments
| :: MisoString | |
| -> MisoString | Offset_ (px / rpx) |
| -> Bool | Whether to animate |
| -> action | |
| -> (MisoString -> action) | |
| -> Effect context props model action |
https://lynxjs.org/api/elements/built-in/scroll-coordinator.html#setfoldexpanded
Adjusts the fold expansion state, optionally with animation. The offset_ is
a px / rpx value, e.g. "100px".
setFoldExpanded "#coordinator" "100px" True Expanded ExpandFailed