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

Miso.Native.X.Element.ScrollCoordinator.Method

Contents

Description

 
Synopsis

Methods

setFoldExpanded Source #

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