| 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.Viewpager.Method
Contents
Description
Synopsis
- selectTab :: MisoString -> Int -> Bool -> action -> (MisoString -> action) -> Effect context props model action
Methods
Arguments
| :: MisoString | |
| -> Int | Page index |
| -> Bool | Whether to animate the transition |
| -> action | |
| -> (MisoString -> action) | |
| -> Effect context props model action |
https://lynxjs.org/api/elements/built-in/viewpager.html#selecttab
Programmatically navigates to the specified page, optionally with animation.
selectTab "#myPager" 2 True TabSelected TabSelectFailed