module Graphics.UI.Threepenny.Attributes ( -- * Synopsis -- | Element attributes. -- * Input elements checked, selection, enabled, -- * HTML attributes action, align, alink, alt, altcode, archive, background, base, bgcolor, border, bordercolor, cellpadding, cellspacing, checked_, class_, clear_, code_, codebase, color, cols, colspan, compact, content, coords, enctype, face, frameborder, height, href, hspace, httpequiv, id_, ismap, lang, marginheight, marginwidth, maxlength, method, multiple, name, nohref, noresize, noshade, nowrap, rel, rev, rows, rowspan, rules, scrolling, selected, shape, size, src, target, text_, type_, usemap, valign, version, vlink, vspace, width, ) where import Text.JSON import Graphics.UI.Threepenny.Core {----------------------------------------------------------------------------- Attributes ------------------------------------------------------------------------------} -- | The @checked@ status of an input element of type checkbox. checked :: Attr Element Bool checked = fromProp "checked" (== JSBool True) JSBool -- | The @enabled@ status of an input element enabled :: Attr Element Bool enabled = fromProp "disabled" (== JSBool False) (JSBool . not) -- | Index of the currently selected option of a @