{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.HTMLTableSectionElement
(insertRow, insertRow_, deleteRow, setAlign, getAlign, setCh,
getCh, setChOff, getChOff, setVAlign, getVAlign, getRows,
HTMLTableSectionElement(..), gTypeHTMLTableSectionElement)
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, unsafeEventNameAsync)
import JSDOM.Enums
insertRow ::
(MonadDOM m) =>
HTMLTableSectionElement -> Maybe Int -> m HTMLElement
insertRow self index
= liftDOM
((self ^. jsf "insertRow" [toJSVal index]) >>= fromJSValUnchecked)
insertRow_ ::
(MonadDOM m) => HTMLTableSectionElement -> Maybe Int -> m ()
insertRow_ self index
= liftDOM (void (self ^. jsf "insertRow" [toJSVal index]))
deleteRow :: (MonadDOM m) => HTMLTableSectionElement -> Int -> m ()
deleteRow self index
= liftDOM (void (self ^. jsf "deleteRow" [toJSVal index]))
setAlign ::
(MonadDOM m, ToJSString val) =>
HTMLTableSectionElement -> val -> m ()
setAlign self val = liftDOM (self ^. jss "align" (toJSVal val))
getAlign ::
(MonadDOM m, FromJSString result) =>
HTMLTableSectionElement -> m result
getAlign self
= liftDOM ((self ^. js "align") >>= fromJSValUnchecked)
setCh ::
(MonadDOM m, ToJSString val) =>
HTMLTableSectionElement -> val -> m ()
setCh self val = liftDOM (self ^. jss "ch" (toJSVal val))
getCh ::
(MonadDOM m, FromJSString result) =>
HTMLTableSectionElement -> m result
getCh self = liftDOM ((self ^. js "ch") >>= fromJSValUnchecked)
setChOff ::
(MonadDOM m, ToJSString val) =>
HTMLTableSectionElement -> val -> m ()
setChOff self val = liftDOM (self ^. jss "chOff" (toJSVal val))
getChOff ::
(MonadDOM m, FromJSString result) =>
HTMLTableSectionElement -> m result
getChOff self
= liftDOM ((self ^. js "chOff") >>= fromJSValUnchecked)
setVAlign ::
(MonadDOM m, ToJSString val) =>
HTMLTableSectionElement -> val -> m ()
setVAlign self val = liftDOM (self ^. jss "vAlign" (toJSVal val))
getVAlign ::
(MonadDOM m, FromJSString result) =>
HTMLTableSectionElement -> m result
getVAlign self
= liftDOM ((self ^. js "vAlign") >>= fromJSValUnchecked)
getRows ::
(MonadDOM m) => HTMLTableSectionElement -> m HTMLCollection
getRows self = liftDOM ((self ^. js "rows") >>= fromJSValUnchecked)