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

Contents

Description

 
Synopsis

Methods

selectTab Source #

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