module JSDOM.Generated.HTMLLinkElement
(setDisabled, getDisabled, setCharset, getCharset, setHref,
getHref, setHreflang, getHreflang, setMedia, getMedia, setRel,
getRel, setRev, getRev, getSizes, setTarget, getTarget, setType,
getType, setAs, getAs, setCrossOrigin, getCrossOrigin,
getCrossOriginUnsafe, getCrossOriginUnchecked, getSheet,
getRelList, setNonce, getNonce, setIntegrity, getIntegrity,
HTMLLinkElement(..), gTypeHTMLLinkElement)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))
import qualified Prelude (error)
import Data.Typeable (Typeable)
import Data.Traversable (mapM)
import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, asyncFunction, new, array, jsUndefined, (!), (!!))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import JSDOM.Types
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import JSDOM.EventTargetClosures (EventName, unsafeEventName)
import JSDOM.Enums
setDisabled :: (MonadDOM m) => HTMLLinkElement -> Bool -> m ()
setDisabled self val
= liftDOM (self ^. jss "disabled" (toJSVal val))
getDisabled :: (MonadDOM m) => HTMLLinkElement -> m Bool
getDisabled self = liftDOM ((self ^. js "disabled") >>= valToBool)
setCharset ::
(MonadDOM m, ToJSString val) => HTMLLinkElement -> val -> m ()
setCharset self val = liftDOM (self ^. jss "charset" (toJSVal val))
getCharset ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getCharset self
= liftDOM ((self ^. js "charset") >>= fromJSValUnchecked)
setHref ::
(MonadDOM m, ToJSString val) => HTMLLinkElement -> val -> m ()
setHref self val = liftDOM (self ^. jss "href" (toJSVal val))
getHref ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getHref self = liftDOM ((self ^. js "href") >>= fromJSValUnchecked)
setHreflang ::
(MonadDOM m, ToJSString val) => HTMLLinkElement -> val -> m ()
setHreflang self val
= liftDOM (self ^. jss "hreflang" (toJSVal val))
getHreflang ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getHreflang self
= liftDOM ((self ^. js "hreflang") >>= fromJSValUnchecked)
setMedia ::
(MonadDOM m, ToJSString val) => HTMLLinkElement -> val -> m ()
setMedia self val = liftDOM (self ^. jss "media" (toJSVal val))
getMedia ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getMedia self
= liftDOM ((self ^. js "media") >>= fromJSValUnchecked)
setRel ::
(MonadDOM m, ToJSString val) => HTMLLinkElement -> val -> m ()
setRel self val = liftDOM (self ^. jss "rel" (toJSVal val))
getRel ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getRel self = liftDOM ((self ^. js "rel") >>= fromJSValUnchecked)
setRev ::
(MonadDOM m, ToJSString val) => HTMLLinkElement -> val -> m ()
setRev self val = liftDOM (self ^. jss "rev" (toJSVal val))
getRev ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getRev self = liftDOM ((self ^. js "rev") >>= fromJSValUnchecked)
getSizes :: (MonadDOM m) => HTMLLinkElement -> m DOMTokenList
getSizes self
= liftDOM ((self ^. js "sizes") >>= fromJSValUnchecked)
setTarget ::
(MonadDOM m, ToJSString val) => HTMLLinkElement -> val -> m ()
setTarget self val = liftDOM (self ^. jss "target" (toJSVal val))
getTarget ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getTarget self
= liftDOM ((self ^. js "target") >>= fromJSValUnchecked)
setType ::
(MonadDOM m, ToJSString val) => HTMLLinkElement -> val -> m ()
setType self val = liftDOM (self ^. jss "type" (toJSVal val))
getType ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getType self = liftDOM ((self ^. js "type") >>= fromJSValUnchecked)
setAs ::
(MonadDOM m, ToJSString val) => HTMLLinkElement -> val -> m ()
setAs self val = liftDOM (self ^. jss "as" (toJSVal val))
getAs ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getAs self = liftDOM ((self ^. js "as") >>= fromJSValUnchecked)
setCrossOrigin ::
(MonadDOM m, ToJSString val) =>
HTMLLinkElement -> Maybe val -> m ()
setCrossOrigin self val
= liftDOM (self ^. jss "crossOrigin" (toJSVal val))
getCrossOrigin ::
(MonadDOM m, FromJSString result) =>
HTMLLinkElement -> m (Maybe result)
getCrossOrigin self
= liftDOM ((self ^. js "crossOrigin") >>= fromJSVal)
getCrossOriginUnsafe ::
(MonadDOM m, HasCallStack, FromJSString result) =>
HTMLLinkElement -> m result
getCrossOriginUnsafe self
= liftDOM
(((self ^. js "crossOrigin") >>= fromJSVal) >>=
maybe (Prelude.error "Nothing to return") return)
getCrossOriginUnchecked ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getCrossOriginUnchecked self
= liftDOM ((self ^. js "crossOrigin") >>= fromJSValUnchecked)
getSheet :: (MonadDOM m) => HTMLLinkElement -> m StyleSheet
getSheet self
= liftDOM ((self ^. js "sheet") >>= fromJSValUnchecked)
getRelList :: (MonadDOM m) => HTMLLinkElement -> m DOMTokenList
getRelList self
= liftDOM ((self ^. js "relList") >>= fromJSValUnchecked)
setNonce ::
(MonadDOM m, ToJSString val) => HTMLLinkElement -> val -> m ()
setNonce self val = liftDOM (self ^. jss "nonce" (toJSVal val))
getNonce ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getNonce self
= liftDOM ((self ^. js "nonce") >>= fromJSValUnchecked)
setIntegrity ::
(MonadDOM m, ToJSString val) => HTMLLinkElement -> val -> m ()
setIntegrity self val
= liftDOM (self ^. jss "integrity" (toJSVal val))
getIntegrity ::
(MonadDOM m, FromJSString result) => HTMLLinkElement -> m result
getIntegrity self
= liftDOM ((self ^. js "integrity") >>= fromJSValUnchecked)