HTMLSelectElement
Values
add
Adds an element to the areas, controlRange, or options collection. @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection. @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection. Read more on MDN
let add: ( DomTypes.htmlSelectElement, ~element: unknown, ~before: unknown=?,) => unitParameters
DomTypes.htmlSelectElement unknown option< unknown >Return type
unitaddEventListener
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. Read more on MDN
let addEventListener: ( DomTypes.htmlSelectElement, EventTypes.eventType, EventTypes.eventListener<'event>, ~options: EventTypes.addEventListenerOptions=?,) => unitParameters
DomTypes.htmlSelectElement EventTypes.eventType EventTypes.eventListener option< EventTypes.addEventListenerOptions >Return type
unitaddEventListenerWithCapture
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. Read more on MDN
let addEventListenerWithCapture: ( DomTypes.htmlSelectElement, EventTypes.eventType, EventTypes.eventListener<'event>,) => unitParameters
DomTypes.htmlSelectElement EventTypes.eventType EventTypes.eventListenerReturn type
unitafter
Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let after: (DomTypes.htmlSelectElement, DomTypes.node) => unitParameters
DomTypes.htmlSelectElement DomTypes.nodeReturn type
unitafter2
Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let after2: (DomTypes.htmlSelectElement, string) => unitParameters
DomTypes.htmlSelectElement stringReturn type
unitanimate
let animate: ( DomTypes.htmlSelectElement, ~keyframes: unknown, ~options: float=?,) => DomTypes.animationParameters
DomTypes.htmlSelectElement unknown option< float >Return type
DomTypes.animationanimate2
let animate2: ( DomTypes.htmlSelectElement, ~keyframes: unknown, ~options: DomTypes.keyframeAnimationOptions=?,) => DomTypes.animationParameters
DomTypes.htmlSelectElement unknown option< DomTypes.keyframeAnimationOptions >Return type
DomTypes.animationappend
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let append: (DomTypes.htmlSelectElement, DomTypes.node) => unitParameters
DomTypes.htmlSelectElement DomTypes.nodeReturn type
unitappend2
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let append2: (DomTypes.htmlSelectElement, string) => unitParameters
DomTypes.htmlSelectElement stringReturn type
unitasElement
let asElement: DomTypes.htmlSelectElement => DomTypes.elementParameters
DomTypes.htmlSelectElementReturn type
DomTypes.elementasEventTarget
let asEventTarget: DomTypes.htmlSelectElement => EventTypes.eventTargetParameters
DomTypes.htmlSelectElementReturn type
EventTypes.eventTargetasHTMLElement
let asHTMLElement: DomTypes.htmlSelectElement => HTMLElement.tParameters
DomTypes.htmlSelectElementReturn type
HTMLElement.tasNode
let asNode: DomTypes.htmlSelectElement => DomTypes.nodeParameters
DomTypes.htmlSelectElementReturn type
DomTypes.nodeattachInternals
let attachInternals: DomTypes.htmlSelectElement => DomTypes.elementInternalsParameters
DomTypes.htmlSelectElementReturn type
DomTypes.elementInternalsattachShadow
Creates a shadow root for element and returns it. Read more on MDN
let attachShadow: ( DomTypes.htmlSelectElement, DomTypes.shadowRootInit,) => DomTypes.shadowRootParameters
DomTypes.htmlSelectElement DomTypes.shadowRootInitReturn type
DomTypes.shadowRootbefore
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let before: (DomTypes.htmlSelectElement, DomTypes.node) => unitParameters
DomTypes.htmlSelectElement DomTypes.nodeReturn type
unitbefore2
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let before2: (DomTypes.htmlSelectElement, string) => unitParameters
DomTypes.htmlSelectElement stringReturn type
unitblur
let blur: DomTypes.htmlSelectElement => unitParameters
DomTypes.htmlSelectElementReturn type
unitcheckValidity
Returns whether a form will validate when it is submitted, without having to submit it. Read more on MDN
let checkValidity: DomTypes.htmlSelectElement => boolParameters
DomTypes.htmlSelectElementReturn type
boolcheckVisibility
let checkVisibility: ( DomTypes.htmlSelectElement, ~options: DomTypes.checkVisibilityOptions=?,) => boolParameters
DomTypes.htmlSelectElement option< DomTypes.checkVisibilityOptions >Return type
boolclick
let click: DomTypes.htmlSelectElement => unitParameters
DomTypes.htmlSelectElementReturn type
unitcloneNode
Returns a copy of node. If deep is true, the copy also includes the node's descendants. Read more on MDN
let cloneNode: ( DomTypes.htmlSelectElement, ~deep: bool=?,) => DomTypes.htmlSelectElementParameters
DomTypes.htmlSelectElement option< bool >Return type
DomTypes.htmlSelectElementclosest
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. Read more on MDN
let closest: (DomTypes.htmlSelectElement, string) => 'eParameters
DomTypes.htmlSelectElementReturn type
stringcompareDocumentPosition
Returns a bitmask indicating the position of other relative to node. Read more on MDN
let compareDocumentPosition: (DomTypes.htmlSelectElement, DomTypes.node) => intParameters
DomTypes.htmlSelectElement DomTypes.nodeReturn type
intcomputedStyleMap
let computedStyleMap: DomTypes.htmlSelectElement => DomTypes.stylePropertyMapReadOnlyParameters
DomTypes.htmlSelectElementReturn type
DomTypes.stylePropertyMapReadOnlycontains
Returns true if other is an inclusive descendant of node, and false otherwise. Read more on MDN
let contains: (DomTypes.htmlSelectElement, DomTypes.node) => boolParameters
DomTypes.htmlSelectElement DomTypes.nodeReturn type
booldispatchEvent
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. Read more on MDN
let dispatchEvent: (DomTypes.htmlSelectElement, EventTypes.event) => boolParameters
DomTypes.htmlSelectElement EventTypes.eventReturn type
boolfocus
let focus: ( DomTypes.htmlSelectElement, ~options: DomTypes.focusOptions=?,) => unitParameters
DomTypes.htmlSelectElement option< DomTypes.focusOptions >Return type
unitgetAnimations
let getAnimations: ( DomTypes.htmlSelectElement, ~options: DomTypes.getAnimationsOptions=?,) => array<DomTypes.animation>Parameters
DomTypes.htmlSelectElement option< DomTypes.getAnimationsOptions >Return type
array< DomTypes.animation >getAttribute
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. Read more on MDN
let getAttribute: (DomTypes.htmlSelectElement, string) => null<string>Parameters
DomTypes.htmlSelectElement stringReturn type
Stdlib.null< string >getAttributeNames
Returns the qualified names of all element's attributes. Can contain duplicates. Read more on MDN
let getAttributeNames: DomTypes.htmlSelectElement => array<string>Parameters
DomTypes.htmlSelectElementReturn type
array< string >getAttributeNode
let getAttributeNode: (DomTypes.htmlSelectElement, string) => DomTypes.attrParameters
DomTypes.htmlSelectElement stringReturn type
DomTypes.attrgetAttributeNodeNS
let getAttributeNodeNS: ( DomTypes.htmlSelectElement, ~namespace: string, ~localName: string,) => DomTypes.attrParameters
DomTypes.htmlSelectElement string stringReturn type
DomTypes.attrgetAttributeNS
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. Read more on MDN
let getAttributeNS: ( DomTypes.htmlSelectElement, ~namespace: string, ~localName: string,) => stringParameters
DomTypes.htmlSelectElement string stringReturn type
stringgetBoundingClientRect
let getBoundingClientRect: DomTypes.htmlSelectElement => DomTypes.domRectParameters
DomTypes.htmlSelectElementReturn type
DomTypes.domRectgetClientRects
let getClientRects: DomTypes.htmlSelectElement => DomTypes.domRectListParameters
DomTypes.htmlSelectElementReturn type
DomTypes.domRectListgetElementsByClassName
Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. Read more on MDN
let getElementsByClassName: ( DomTypes.htmlSelectElement, string,) => DomTypes.htmlCollection<DomTypes.element>Parameters
DomTypes.htmlSelectElement stringReturn type
DomTypes.htmlCollection< DomTypes.element >getElementsByTagName
let getElementsByTagName: ( DomTypes.htmlSelectElement, string,) => DomTypes.htmlCollection<DomTypes.element>Parameters
DomTypes.htmlSelectElement stringReturn type
DomTypes.htmlCollection< DomTypes.element >getElementsByTagNameNS
let getElementsByTagNameNS: ( DomTypes.element, ~namespace: string, ~localName: string,) => DomTypes.htmlCollection<DomTypes.element>Parameters
DomTypes.element string stringReturn type
DomTypes.htmlCollection< DomTypes.element >getHTML
let getHTML: ( DomTypes.htmlSelectElement, ~options: DomTypes.getHTMLOptions=?,) => stringParameters
DomTypes.htmlSelectElement option< DomTypes.getHTMLOptions >Return type
stringgetRootNode
Returns node's root. Read more on MDN
let getRootNode: ( DomTypes.htmlSelectElement, ~options: DomTypes.getRootNodeOptions=?,) => DomTypes.nodeParameters
DomTypes.htmlSelectElement option< DomTypes.getRootNodeOptions >Return type
DomTypes.nodehasAttribute
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. Read more on MDN
let hasAttribute: (DomTypes.htmlSelectElement, string) => boolParameters
DomTypes.htmlSelectElement stringReturn type
boolhasAttributeNS
Returns true if element has an attribute whose namespace is namespace and local name is localName. Read more on MDN
let hasAttributeNS: ( DomTypes.htmlSelectElement, ~namespace: string, ~localName: string,) => boolParameters
DomTypes.htmlSelectElement string stringReturn type
boolhasAttributes
Returns true if element has attributes, and false otherwise. Read more on MDN
let hasAttributes: DomTypes.htmlSelectElement => boolParameters
DomTypes.htmlSelectElementReturn type
boolhasChildNodes
Returns whether node has children. Read more on MDN
let hasChildNodes: DomTypes.htmlSelectElement => boolParameters
DomTypes.htmlSelectElementReturn type
boolhasPointerCapture
let hasPointerCapture: (DomTypes.htmlSelectElement, int) => boolParameters
DomTypes.htmlSelectElement intReturn type
boolhidePopover
let hidePopover: DomTypes.htmlSelectElement => unitParameters
DomTypes.htmlSelectElementReturn type
unitinsertAdjacentElement
let insertAdjacentElement: ( DomTypes.htmlSelectElement, ~where: DomTypes.insertPosition, ~element: DomTypes.element,) => DomTypes.elementParameters
DomTypes.htmlSelectElement DomTypes.insertPosition DomTypes.elementReturn type
DomTypes.elementinsertAdjacentHTML
let insertAdjacentHTML: ( DomTypes.htmlSelectElement, ~position: DomTypes.insertPosition, ~string: string,) => unitParameters
DomTypes.htmlSelectElement DomTypes.insertPosition stringReturn type
unitinsertAdjacentText
let insertAdjacentText: ( DomTypes.htmlSelectElement, ~where: DomTypes.insertPosition, ~data: string,) => unitParameters
DomTypes.htmlSelectElement DomTypes.insertPosition stringReturn type
unitinsertBefore
let insertBefore: ( DomTypes.htmlSelectElement, 't, ~child: DomTypes.node,) => 'tParameters
DomTypes.htmlSelectElementReturn type
DomTypes.nodeisDefaultNamespace
let isDefaultNamespace: (DomTypes.htmlSelectElement, string) => boolParameters
DomTypes.htmlSelectElement stringReturn type
boolisEqualNode
Returns whether node and otherNode have the same properties. Read more on MDN
let isEqualNode: (DomTypes.htmlSelectElement, DomTypes.node) => boolParameters
DomTypes.htmlSelectElement DomTypes.nodeReturn type
boolisSameNode
let isSameNode: (DomTypes.htmlSelectElement, DomTypes.node) => boolParameters
DomTypes.htmlSelectElement DomTypes.nodeReturn type
boolitem
Retrieves a select object or an object from an options collection. @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. Read more on MDN
let item: ( DomTypes.htmlSelectElement, int,) => DomTypes.htmlOptionElementParameters
DomTypes.htmlSelectElement intReturn type
DomTypes.htmlOptionElementlookupNamespaceURI
let lookupNamespaceURI: (DomTypes.htmlSelectElement, string) => stringParameters
DomTypes.htmlSelectElement stringReturn type
stringlookupPrefix
let lookupPrefix: (DomTypes.htmlSelectElement, string) => stringParameters
DomTypes.htmlSelectElement stringReturn type
stringmatches
Returns true if matching selectors against element's root yields element, and false otherwise. Read more on MDN
let matches: (DomTypes.htmlSelectElement, string) => boolParameters
DomTypes.htmlSelectElement stringReturn type
boolnamedItem
Retrieves a select object or an object from an options collection. @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made. Read more on MDN
let namedItem: ( DomTypes.htmlSelectElement, string,) => DomTypes.htmlOptionElementParameters
DomTypes.htmlSelectElement stringReturn type
DomTypes.htmlOptionElementnormalize
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. Read more on MDN
let normalize: DomTypes.htmlSelectElement => unitParameters
DomTypes.htmlSelectElementReturn type
unitprepend
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let prepend: (DomTypes.htmlSelectElement, DomTypes.node) => unitParameters
DomTypes.htmlSelectElement DomTypes.nodeReturn type
unitprepend2
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let prepend2: (DomTypes.htmlSelectElement, string) => unitParameters
DomTypes.htmlSelectElement stringReturn type
unitquerySelector
Returns the first element that is a descendant of node that matches selectors. Read more on MDN
let querySelector: ( DomTypes.htmlSelectElement, string,) => Null.t<DomTypes.element>Parameters
DomTypes.htmlSelectElement stringReturn type
Stdlib.Null.t< DomTypes.element >querySelectorAll
Returns all element descendants of node that match selectors. Read more on MDN
let querySelectorAll: ( DomTypes.htmlSelectElement, string,) => DomTypes.nodeList<DomTypes.element>Parameters
DomTypes.htmlSelectElement stringReturn type
DomTypes.nodeList< DomTypes.element >releasePointerCapture
let releasePointerCapture: (DomTypes.htmlSelectElement, int) => unitParameters
DomTypes.htmlSelectElement intReturn type
unitremove
Removes node. Read more on MDN
let remove: DomTypes.htmlSelectElement => unitParameters
DomTypes.htmlSelectElementReturn type
unitremoveAttribute
Removes element's first attribute whose qualified name is qualifiedName. Read more on MDN
let removeAttribute: (DomTypes.htmlSelectElement, string) => unitParameters
DomTypes.htmlSelectElement stringReturn type
unitremoveAttributeNode
let removeAttributeNode: (DomTypes.htmlSelectElement, DomTypes.attr) => DomTypes.attrParameters
DomTypes.htmlSelectElement DomTypes.attrReturn type
DomTypes.attrremoveAttributeNS
Removes element's attribute whose namespace is namespace and local name is localName. Read more on MDN
let removeAttributeNS: ( DomTypes.htmlSelectElement, ~namespace: string, ~localName: string,) => unitParameters
DomTypes.htmlSelectElement string stringReturn type
unitremoveEventListener
Removes the event listener in target's event listener list with the same type, callback, and options. Read more on MDN
let removeEventListener: ( DomTypes.htmlSelectElement, EventTypes.eventType, EventTypes.eventListener<'event>, ~options: EventTypes.eventListenerOptions=?,) => unitParameters
DomTypes.htmlSelectElement EventTypes.eventType EventTypes.eventListener option< EventTypes.eventListenerOptions >Return type
unitremoveEventListenerUseCapture
Removes the event listener in target's event listener list with the same type, callback, and options. Read more on MDN
let removeEventListenerUseCapture: ( DomTypes.htmlSelectElement, EventTypes.eventType, EventTypes.eventListener<'event>,) => unitParameters
DomTypes.htmlSelectElement EventTypes.eventType EventTypes.eventListenerReturn type
unitremoveH
Removes an element from the collection. @param index Number that specifies the zero-based index of the element to remove from the collection. Read more on MDN
let removeH: DomTypes.htmlSelectElement => unitParameters
DomTypes.htmlSelectElementReturn type
unitremoveH2
Removes an element from the collection. @param index Number that specifies the zero-based index of the element to remove from the collection. Read more on MDN
let removeH2: (DomTypes.htmlSelectElement, int) => unitParameters
DomTypes.htmlSelectElement intReturn type
unitreplaceChild
let replaceChild: (DomTypes.htmlSelectElement, ~node: DomTypes.node, 't) => 'tParameters
DomTypes.htmlSelectElementReturn type
DomTypes.nodereplaceChildren
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let replaceChildren: (DomTypes.htmlSelectElement, DomTypes.node) => unitParameters
DomTypes.htmlSelectElement DomTypes.nodeReturn type
unitreplaceChildren2
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let replaceChildren2: (DomTypes.htmlSelectElement, string) => unitParameters
DomTypes.htmlSelectElement stringReturn type
unitreplaceWith
Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let replaceWith: (DomTypes.htmlSelectElement, DomTypes.node) => unitParameters
DomTypes.htmlSelectElement DomTypes.nodeReturn type
unitreplaceWith2
Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. Read more on MDN
let replaceWith2: (DomTypes.htmlSelectElement, string) => unitParameters
DomTypes.htmlSelectElement stringReturn type
unitreportValidity
let reportValidity: DomTypes.htmlSelectElement => boolParameters
DomTypes.htmlSelectElementReturn type
boolrequestFullscreen
Displays element fullscreen and resolves promise when done.
When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. Read more on MDN
let requestFullscreen: ( DomTypes.htmlSelectElement, ~options: DomTypes.fullscreenOptions=?,) => promise<unit>Parameters
DomTypes.htmlSelectElement option< DomTypes.fullscreenOptions >Return type
promise< unit >requestPointerLock
let requestPointerLock: ( DomTypes.htmlSelectElement, ~options: DomTypes.pointerLockOptions=?,) => promise<unit>Parameters
DomTypes.htmlSelectElement option< DomTypes.pointerLockOptions >Return type
promise< unit >scroll
let scroll: ( DomTypes.htmlSelectElement, ~options: DomTypes.scrollToOptions=?,) => unitParameters
DomTypes.htmlSelectElement option< DomTypes.scrollToOptions >Return type
unitscroll2
let scroll2: (DomTypes.htmlSelectElement, ~x: float, ~y: float) => unitParameters
DomTypes.htmlSelectElement float floatReturn type
unitscrollBy
let scrollBy: ( DomTypes.htmlSelectElement, ~options: DomTypes.scrollToOptions=?,) => unitParameters
DomTypes.htmlSelectElement option< DomTypes.scrollToOptions >Return type
unitscrollBy2
let scrollBy2: (DomTypes.htmlSelectElement, ~x: float, ~y: float) => unitParameters
DomTypes.htmlSelectElement float floatReturn type
unitscrollIntoView
scrollIntoView()
Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
element->Element.scrollIntoView()
let scrollIntoView: DomTypes.htmlSelectElement => unitParameters
DomTypes.htmlSelectElementReturn type
unitscrollIntoViewAlignToTop
scrollIntoView(true)
Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
element->Element.scrollIntoView_alignToTop()
let scrollIntoViewAlignToTop: DomTypes.htmlSelectElement => unitParameters
DomTypes.htmlSelectElementReturn type
unitscrollIntoViewWithOptions
scrollIntoView({ behavior: "smooth" })
Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth })
let scrollIntoViewWithOptions: ( DomTypes.htmlSelectElement, DomTypes.scrollIntoViewOptions,) => unitParameters
DomTypes.htmlSelectElement DomTypes.scrollIntoViewOptionsReturn type
unitscrollTo
let scrollTo: ( DomTypes.htmlSelectElement, ~options: DomTypes.scrollToOptions=?,) => unitParameters
DomTypes.htmlSelectElement option< DomTypes.scrollToOptions >Return type
unitscrollTo2
let scrollTo2: (DomTypes.htmlSelectElement, ~x: float, ~y: float) => unitParameters
DomTypes.htmlSelectElement float floatReturn type
unitsetAttribute
Sets the value of element's first attribute whose qualified name is qualifiedName to value. Read more on MDN
let setAttribute: ( DomTypes.htmlSelectElement, ~qualifiedName: string, ~value: string,) => unitParameters
DomTypes.htmlSelectElement string stringReturn type
unitsetAttributeNode
let setAttributeNode: (DomTypes.htmlSelectElement, DomTypes.attr) => DomTypes.attrParameters
DomTypes.htmlSelectElement DomTypes.attrReturn type
DomTypes.attrsetAttributeNodeNS
let setAttributeNodeNS: (DomTypes.htmlSelectElement, DomTypes.attr) => DomTypes.attrParameters
DomTypes.htmlSelectElement DomTypes.attrReturn type
DomTypes.attrsetAttributeNS
Sets the value of element's attribute whose namespace is namespace and local name is localName to value. Read more on MDN
let setAttributeNS: ( DomTypes.element, ~namespace: string, ~qualifiedName: string, ~value: string,) => unitParameters
DomTypes.element string string stringReturn type
unitsetCustomValidity
Sets a custom error message that is displayed when a form is submitted. @param error Sets a custom error message that is displayed when a form is submitted. Read more on MDN
let setCustomValidity: (DomTypes.htmlSelectElement, string) => unitParameters
DomTypes.htmlSelectElement stringReturn type
unitsetHTMLUnsafe
let setHTMLUnsafe: (DomTypes.htmlSelectElement, string) => unitParameters
DomTypes.htmlSelectElement stringReturn type
unitsetPointerCapture
let setPointerCapture: (DomTypes.htmlSelectElement, int) => unitParameters
DomTypes.htmlSelectElement intReturn type
unitshowPicker
let showPicker: DomTypes.htmlSelectElement => unitParameters
DomTypes.htmlSelectElementReturn type
unitshowPopover
let showPopover: DomTypes.htmlSelectElement => unitParameters
DomTypes.htmlSelectElementReturn type
unittoggleAttribute
If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
Returns true if qualifiedName is now present, and false otherwise. Read more on MDN
let toggleAttribute: ( DomTypes.htmlSelectElement, ~qualifiedName: string, ~force: bool=?,) => boolParameters
DomTypes.htmlSelectElement string option< bool >Return type
booltogglePopover
let togglePopover: (DomTypes.htmlSelectElement, ~force: bool=?) => bool