javascript-extras-0.5.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 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

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

set a property of any JSVal