| 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.Refresh.Method
Contents
Description
Synopsis
- autoStartRefresh :: MisoString -> action -> (MisoString -> action) -> Effect context props model action
- finishRefresh :: MisoString -> action -> (MisoString -> action) -> Effect context props model action
Methods
autoStartRefresh :: MisoString -> action -> (MisoString -> action) -> Effect context props model action Source #
https://lynxjs.org/api/elements/built-in/refresh.html#autostartrefresh
When enable-refresh is true, exposes the entire <refresh-header>,
triggering the startrefresh event.
autoStartRefresh "#myRefresh" Started StartFailed
finishRefresh :: MisoString -> action -> (MisoString -> action) -> Effect context props model action Source #
https://lynxjs.org/api/elements/built-in/refresh.html#finishrefresh
Called after the startrefresh event to end the refresh state, making the
<refresh-header> rebound.
finishRefresh "#myRefresh" Finished FinishFailed