javascript-extras-0.4.0.0: Extra javascript functions when using GHCJS

Safe HaskellNone
LanguageHaskell2010

JavaScript.Extras.Property

Synopsis

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

setProperty :: ToJS a => a -> Property -> IO () Source #

set a property of any JSVal