Module

Web.DOM.Element

Package
purescript-web-dom
Repository
purescript-web/purescript-web-dom

#DOMRect Source

type DOMRect = { bottom :: Number, height :: Number, left :: Number, right :: Number, top :: Number, width :: Number, x :: Number, y :: Number }

#ShadowRootInit Source

type ShadowRootInit = { delegatesFocus :: Boolean, mode :: ShadowRootMode }

#scrollIntoView Source

scrollIntoView :: Element -> Effect Unit

Scrolls the element's ancestor containers so that the element is visible, using the default alignment (element.scrollIntoView()).

#scrollIntoViewWithOptions Source

scrollIntoViewWithOptions :: ScrollIntoViewOptions -> Element -> Effect Unit

Scrolls the element into view with the given behavior and alignment (element.scrollIntoView(options)).

#ScrollBehavior Source

data ScrollBehavior

How the scroll is animated.

Constructors

Instances

#ScrollLogicalPosition Source

data ScrollLogicalPosition

Where the element is aligned within the scrollport.

Constructors

Instances

#ScrollIntoViewOptions Source

Re-exports from Web.DOM.Internal.Types

#Element Source

data Element

Re-exports from Web.DOM.ParentNode