ghcjs-dom-javascript-0.10.0.0: src/GHCJS/DOM/JSFFI/Generated/HTMLParamElement.hs
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from html (webref). Do not edit.
module GHCJS.DOM.JSFFI.Generated.HTMLParamElement
(js_setName, js_getName, js_setValue, js_getValue, js_setType, js_getType, js_setValueType, js_getValueType, setName, getName, setValue, getValue, setType, getType, setValueType, getValueType, HTMLParamElement(..), gTypeHTMLParamElement)
where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import GHCJS.Types (JSVal, JSString)
import GHCJS.Foreign (jsUndefined, jsNull)
import GHCJS.DOM.Types
import qualified GHCJS.DOM.Types as Types
import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import GHCJS.DOM.JSFFI.Generated.Enums
foreign import javascript safe "(($1, $2) => { $1[\"name\"] = $2; })"
js_setName :: HTMLParamElement -> JSString -> IO ()
-- | <https://html.spec.whatwg.org/multipage/obsolete.html#dom-param-name HTMLParamElement.name specification>
setName :: (MonadDOM m, ToJSString val) => HTMLParamElement -> val -> m ()
setName self val = liftDOM (void ((js_setName (self) (toJSString val))))
foreign import javascript unsafe "(($1) => { return $1[\"name\"]; })"
js_getName :: HTMLParamElement -> IO JSString
-- | <https://html.spec.whatwg.org/multipage/obsolete.html#dom-param-name HTMLParamElement.name specification>
getName :: (MonadDOM m, FromJSString result) => HTMLParamElement -> m result
getName self = liftDOM ((fromJSString <$> (js_getName (self))))
foreign import javascript safe "(($1, $2) => { $1[\"value\"] = $2; })"
js_setValue :: HTMLParamElement -> JSString -> IO ()
-- | <https://html.spec.whatwg.org/multipage/obsolete.html#dom-param-value HTMLParamElement.value specification>
setValue :: (MonadDOM m, ToJSString val) => HTMLParamElement -> val -> m ()
setValue self val = liftDOM (void ((js_setValue (self) (toJSString val))))
foreign import javascript unsafe "(($1) => { return $1[\"value\"]; })"
js_getValue :: HTMLParamElement -> IO JSString
-- | <https://html.spec.whatwg.org/multipage/obsolete.html#dom-param-value HTMLParamElement.value specification>
getValue :: (MonadDOM m, FromJSString result) => HTMLParamElement -> m result
getValue self = liftDOM ((fromJSString <$> (js_getValue (self))))
foreign import javascript safe "(($1, $2) => { $1[\"type\"] = $2; })"
js_setType :: HTMLParamElement -> JSString -> IO ()
-- | <https://html.spec.whatwg.org/multipage/obsolete.html#dom-param-type HTMLParamElement.type specification>
setType :: (MonadDOM m, ToJSString val) => HTMLParamElement -> val -> m ()
setType self val = liftDOM (void ((js_setType (self) (toJSString val))))
foreign import javascript unsafe "(($1) => { return $1[\"type\"]; })"
js_getType :: HTMLParamElement -> IO JSString
-- | <https://html.spec.whatwg.org/multipage/obsolete.html#dom-param-type HTMLParamElement.type specification>
getType :: (MonadDOM m, FromJSString result) => HTMLParamElement -> m result
getType self = liftDOM ((fromJSString <$> (js_getType (self))))
foreign import javascript safe "(($1, $2) => { $1[\"valueType\"] = $2; })"
js_setValueType :: HTMLParamElement -> JSString -> IO ()
-- | <https://html.spec.whatwg.org/multipage/obsolete.html#dom-param-valuetype HTMLParamElement.valueType specification>
setValueType :: (MonadDOM m, ToJSString val) => HTMLParamElement -> val -> m ()
setValueType self val = liftDOM (void ((js_setValueType (self) (toJSString val))))
foreign import javascript unsafe "(($1) => { return $1[\"valueType\"]; })"
js_getValueType :: HTMLParamElement -> IO JSString
-- | <https://html.spec.whatwg.org/multipage/obsolete.html#dom-param-valuetype HTMLParamElement.valueType specification>
getValueType :: (MonadDOM m, FromJSString result) => HTMLParamElement -> m result
getValueType self = liftDOM ((fromJSString <$> (js_getValueType (self))))