Safe Haskell | None |
---|---|
Language | Haskell2010 |
- classNames :: [(JSString, Bool)] -> JSRep
- type Property = (JSString, JSRep)
- getProperty :: ToJS a => a -> JSString -> IO JSRep
- setProperty :: ToJS a => a -> Property -> 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 a => a -> JSString -> 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 #