Module Element.Impl

Parameters

Signature

let asHtmlElement: T.t => option(Dom.htmlElement);
let unsafeAsHtmlElement: T.t => Dom.htmlElement;

Unsafe cast, use asHtmlElement instead

let ofNode: Dom.node => option(T.t);
let attributes: T.t => Dom.namedNodeMap;
let classList: T.t => Dom.domTokenList;
let className: T.t => string;
let setClassName: T.t => string => unit;
let clientHeight: T.t => int;
let clientLeft: T.t => int;
let clientTop: T.t => int;
let clientWidth: T.t => int;
let id: T.t => string;
let setId: T.t => string => unit;
let innerHTML: T.t => string;
let setInnerHTML: T.t => string => unit;
let localName: T.t => string;
let namespaceURI: T.t => option(string);
let outerHTML: T.t => string;
let setOuterHTML: T.t => string => unit;
let prefix: T.t => option(string);
let scrollHeight: T.t => int;
let scrollLeft: T.t => float;
let setScrollLeft: T.t => float => unit;
let scrollTop: T.t => float;
let setScrollTop: T.t => float => unit;
let scrollWidth: T.t => int;
let shadowRoot: T.t => Dom.element;
let slot: T.t => string;
let setSlot: T.t => string => unit;
let tagName: T.t => string;
let attachShadow: Js.t({. mode: string, }) => T.t => Dom.shadowRoot;
let attachShadowOpen: T.t => Dom.shadowRoot;
let attachShadowClosed: T.t => Dom.shadowRoot;
let animate: Js.t({.. }) => Js.t({.. }) => T.t => Dom.animation;
let closest: string => T.t => option(Dom.element);
let createShadowRoot: T.t => Dom.shadowRoot;
let getAttribute: string => T.t => option(string);
let getAttributeNS: string => string => T.t => option(string);
let getBoundingClientRect: T.t => Dom.domRect;
let getClientRects: T.t => array(Dom.domRect);
let getElementsByClassName: string => T.t => Dom.htmlCollection;
let getElementsByTagName: string => T.t => Dom.htmlCollection;
let getElementsByTagNameNS: string => string => T.t => Dom.htmlCollection;
let hasAttribute: string => T.t => bool;
let hasAttributeNS: string => string => T.t => bool;
let hasAttributes: T.t => bool;
let insertAdjacentElement: string => Dom.element_like('a) => T.t => unit;
let insertAdjacentElement: Webapi__Dom__Types.insertPosition => Dom.element_like('a) => T.t => unit;
let insertAdjacentHTML: string => string => T.t => unit;
let insertAdjacentHTML: Webapi__Dom__Types.insertPosition => string => T.t => unit;
let insertAdjacentText: string => string => T.t => unit;
let insertAdjacentText: Webapi__Dom__Types.insertPosition => string => T.t => unit;
let matches: string => T.t => bool;
let releasePointerCapture: Dom.eventPointerId => T.t => unit;
let removeAttribute: string => T.t => unit;
let removeAttributeNS: string => string => T.t => unit;
let requestFullscreen: T.t => unit;
let requestPointerLock: T.t => unit;
let scrollIntoView: T.t => unit;
let scrollIntoViewNoAlignToTop: T.t => unit;
let scrollIntoViewWithOptions: Js.t({. behavior: string, block: string, }) => T.t => unit;
let scrollBy: float => float => T.t => unit;
let scrollByWithOptions: Js.t({. top: float, left: float, behavior: string, }) => T.t => unit;
let scrollTo: float => float => T.t => unit;
let scrollToWithOptions: Js.t({. top: float, left: float, behavior: string, }) => T.t => unit;
let setAttribute: string => string => T.t => unit;
let setAttributeNS: string => string => string => T.t => unit;
let setPointerCapture: Dom.eventPointerId => T.t => unit;
let setOnClick: T.t => (Dom.mouseEvent => unit) => unit;