Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- classNames :: [(JSString, Bool)] -> JSRep
- type Property = (JSString, JSRep)
- getProperty :: ToJS j => JSString -> j -> IO JSRep
- setProperty :: ToJS j => Property -> j -> IO ()
- fromProperties :: [Property] -> Object
- toProperties :: Object -> IO [Property]
Documentation
classNames :: [(JSString, Bool)] -> JSRep Source #
Creates a JE.JSRep single string for "className" property from a list of (JSString, Bool) Idea from https://github.com/JedWatson/classnames
getProperty :: ToJS j => JSString -> j -> IO JSRep Source #
get a property of any JSVal. If a null or undefined is queried, the result will also be null
fromProperties :: [Property] -> Object Source #