{-# LANGUAGE OverloadedStrings #-}
module Miso.Native.X.Element.ScrollCoordinator.Property
(
androidNestedScrollAsChild_
, bounces_
, enableScroll_
, enableScrollBar_
, granularity_
, headerOverSlot_
, iosForceScrollDetach_
, iosScrollsToTop_
, refreshMode_
, RefreshMode (..)
) where
import Miso.JSON (ToJSON(..))
import Miso.Types (Attribute)
import Miso.Property
data RefreshMode
= RefreshNone
| RefreshPage
| RefreshFold
deriving (Int -> RefreshMode -> ShowS
[RefreshMode] -> ShowS
RefreshMode -> String
(Int -> RefreshMode -> ShowS)
-> (RefreshMode -> String)
-> ([RefreshMode] -> ShowS)
-> Show RefreshMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RefreshMode -> ShowS
showsPrec :: Int -> RefreshMode -> ShowS
$cshow :: RefreshMode -> String
show :: RefreshMode -> String
$cshowList :: [RefreshMode] -> ShowS
showList :: [RefreshMode] -> ShowS
Show, RefreshMode -> RefreshMode -> Bool
(RefreshMode -> RefreshMode -> Bool)
-> (RefreshMode -> RefreshMode -> Bool) -> Eq RefreshMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RefreshMode -> RefreshMode -> Bool
== :: RefreshMode -> RefreshMode -> Bool
$c/= :: RefreshMode -> RefreshMode -> Bool
/= :: RefreshMode -> RefreshMode -> Bool
Eq)
instance ToJSON RefreshMode where
toJSON :: RefreshMode -> Value
toJSON RefreshMode
RefreshNone = Value
"none"
toJSON RefreshMode
RefreshPage = Value
"page"
toJSON RefreshMode
RefreshFold = Value
"fold"
androidNestedScrollAsChild_ :: Bool -> Attribute model action
androidNestedScrollAsChild_ :: forall model action. Bool -> Attribute model action
androidNestedScrollAsChild_ = MisoString -> Bool -> Attribute model action
forall model action. MisoString -> Bool -> Attribute model action
boolProp MisoString
"android-nested-scroll-as-child"
bounces_ :: Bool -> Attribute model action
bounces_ :: forall model action. Bool -> Attribute model action
bounces_ = MisoString -> Bool -> Attribute model action
forall model action. MisoString -> Bool -> Attribute model action
boolProp MisoString
"bounces"
enableScroll_ :: Bool -> Attribute model action
enableScroll_ :: forall model action. Bool -> Attribute model action
enableScroll_ = MisoString -> Bool -> Attribute model action
forall model action. MisoString -> Bool -> Attribute model action
boolProp MisoString
"enable-scroll"
enableScrollBar_ :: Bool -> Attribute model action
enableScrollBar_ :: forall model action. Bool -> Attribute model action
enableScrollBar_ = MisoString -> Bool -> Attribute model action
forall model action. MisoString -> Bool -> Attribute model action
boolProp MisoString
"enable-scroll-bar"
granularity_ :: Double -> Attribute model action
granularity_ :: forall model action. Double -> Attribute model action
granularity_ = MisoString -> Double -> Attribute model action
forall model action. MisoString -> Double -> Attribute model action
doubleProp MisoString
"granularity"
headerOverSlot_ :: Bool -> Attribute model action
= MisoString -> Bool -> Attribute model action
forall model action. MisoString -> Bool -> Attribute model action
boolProp MisoString
"header-over-slot"
iosForceScrollDetach_ :: Bool -> Attribute model action
iosForceScrollDetach_ :: forall model action. Bool -> Attribute model action
iosForceScrollDetach_ = MisoString -> Bool -> Attribute model action
forall model action. MisoString -> Bool -> Attribute model action
boolProp MisoString
"ios-force-scroll-detach"
iosScrollsToTop_ :: Bool -> Attribute model action
iosScrollsToTop_ :: forall model action. Bool -> Attribute model action
iosScrollsToTop_ = MisoString -> Bool -> Attribute model action
forall model action. MisoString -> Bool -> Attribute model action
boolProp MisoString
"ios-scrolls-to-top"
refreshMode_ :: RefreshMode -> Attribute model action
refreshMode_ :: forall model action. RefreshMode -> Attribute model action
refreshMode_ = MisoString -> RefreshMode -> Attribute model action
forall a model action.
ToJSON a =>
MisoString -> a -> Attribute model action
prop MisoString
"refresh-mode"