HTMLSelectElement

abstract external class HTMLSelectElement : HTMLElement, ItemArrayLike<Element>

Exposes the JavaScript HTMLSelectElement to Kotlin

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun add(element: UnionHTMLOptGroupElementOrHTMLOptionElement, before: dynamic = definedExternally)
Link copied to clipboard
fun addEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun addEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
abstract fun after(vararg nodes: dynamic)
Link copied to clipboard
abstract fun append(vararg nodes: dynamic)
Link copied to clipboard
fun appendChild(node: Node): Node
Link copied to clipboard
Link copied to clipboard
abstract fun before(vararg nodes: dynamic)
Link copied to clipboard
fun blur()
Link copied to clipboard
fun checkValidity(): Boolean
Link copied to clipboard
fun click()
Link copied to clipboard
fun cloneNode(deep: Boolean = definedExternally): Node
Link copied to clipboard
fun closest(selectors: String): Element?
Link copied to clipboard
Link copied to clipboard
fun contains(other: Node?): Boolean
Link copied to clipboard
abstract fun convertPointFromNode(    point: DOMPointInit,     from: dynamic,     options: ConvertCoordinateOptions = definedExternally): DOMPoint
Link copied to clipboard
abstract fun convertQuadFromNode(    quad: dynamic,     from: dynamic,     options: ConvertCoordinateOptions = definedExternally): DOMQuad
Link copied to clipboard
abstract fun convertRectFromNode(    rect: DOMRectReadOnly,     from: dynamic,     options: ConvertCoordinateOptions = definedExternally): DOMQuad
Link copied to clipboard
fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
fun focus()
Link copied to clipboard
Link copied to clipboard
fun getAttribute(qualifiedName: String): String?
Link copied to clipboard
Link copied to clipboard
fun getAttributeNode(qualifiedName: String): Attr?
Link copied to clipboard
fun getAttributeNodeNS(namespace: String?, localName: String): Attr?
Link copied to clipboard
fun getAttributeNS(namespace: String?, localName: String): String?
Link copied to clipboard
Link copied to clipboard
abstract fun getBoxQuads(options: BoxQuadOptions = definedExternally): Array<DOMQuad>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getElementsByTagNameNS(namespace: String?, localName: String): HTMLCollection
Link copied to clipboard
fun getRootNode(options: GetRootNodeOptions = definedExternally): Node
Link copied to clipboard
fun hasAttribute(qualifiedName: String): Boolean
Link copied to clipboard
fun hasAttributeNS(namespace: String?, localName: String): Boolean
Link copied to clipboard
fun hasAttributes(): Boolean
Link copied to clipboard
fun hasChildNodes(): Boolean
Link copied to clipboard
fun hasPointerCapture(pointerId: Int): Boolean
Link copied to clipboard
Link copied to clipboard
fun insertAdjacentHTML(position: String, text: String)
Link copied to clipboard
fun insertAdjacentText(where: String, data: String)
Link copied to clipboard
fun insertBefore(node: Node, child: Node?): Node
Link copied to clipboard
fun isDefaultNamespace(namespace: String?): Boolean
Link copied to clipboard
fun isEqualNode(otherNode: Node?): Boolean
Link copied to clipboard
fun isSameNode(otherNode: Node?): Boolean
Link copied to clipboard
open override fun item(index: Int): Element?
Link copied to clipboard
Link copied to clipboard
fun lookupPrefix(namespace: String?): String?
Link copied to clipboard
fun matches(selectors: String): Boolean
Link copied to clipboard
Link copied to clipboard
fun normalize()
Link copied to clipboard
abstract fun prepend(vararg nodes: dynamic)
Link copied to clipboard
abstract fun querySelector(selectors: String): Element?
Link copied to clipboard
abstract fun querySelectorAll(selectors: String): NodeList
Link copied to clipboard
fun releasePointerCapture(pointerId: Int)
Link copied to clipboard
abstract fun remove()
fun remove(index: Int)
Link copied to clipboard
fun removeAttribute(qualifiedName: String)
Link copied to clipboard
Link copied to clipboard
fun removeAttributeNS(namespace: String?, localName: String)
Link copied to clipboard
fun removeChild(child: Node): Node
Link copied to clipboard
fun removeEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun removeEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
fun replaceChild(node: Node, child: Node): Node
Link copied to clipboard
abstract fun replaceWith(vararg nodes: dynamic)
Link copied to clipboard
fun reportValidity(): Boolean
Link copied to clipboard
Link copied to clipboard
fun scroll(options: ScrollToOptions = definedExternally)
fun scroll(x: Double, y: Double)
Link copied to clipboard
fun scrollBy(options: ScrollToOptions = definedExternally)
fun scrollBy(x: Double, y: Double)
Link copied to clipboard
fun scrollIntoView(arg: dynamic)
Link copied to clipboard
fun scrollTo(options: ScrollToOptions = definedExternally)
fun scrollTo(x: Double, y: Double)
Link copied to clipboard
fun setAttribute(qualifiedName: String, value: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setAttributeNS(    namespace: String?,     qualifiedName: String,     value: String)
Link copied to clipboard
Link copied to clipboard
fun setPointerCapture(pointerId: Int)
Link copied to clipboard
fun webkitMatchesSelector(selectors: String): Boolean

Properties

Link copied to clipboard
open var accessKey: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var autofocus: Boolean
Link copied to clipboard
open val baseURI: String
Link copied to clipboard
abstract val childElementCount: Int
Link copied to clipboard
Link copied to clipboard
abstract val children: HTMLCollection
Link copied to clipboard
Link copied to clipboard
open var className: String
Link copied to clipboard
open val clientHeight: Int
Link copied to clipboard
open val clientLeft: Int
Link copied to clipboard
open val clientTop: Int
Link copied to clipboard
open val clientWidth: Int
Link copied to clipboard
abstract var contentEditable: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var dir: String
Link copied to clipboard
open var disabled: Boolean
Link copied to clipboard
open var draggable: Boolean
Link copied to clipboard
Link copied to clipboard
open val firstChild: Node?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var hidden: Boolean
Link copied to clipboard
open var id: String
Link copied to clipboard
open var innerHTML: String
Link copied to clipboard
open var innerText: String
Link copied to clipboard
open val isConnected: Boolean
Link copied to clipboard
abstract val isContentEditable: Boolean
Link copied to clipboard
open val labels: NodeList
Link copied to clipboard
open var lang: String
Link copied to clipboard
open val lastChild: Node?
Link copied to clipboard
Link copied to clipboard
open override var length: Int
Link copied to clipboard
open val localName: String
Link copied to clipboard
open var multiple: Boolean
Link copied to clipboard
open var name: String
Link copied to clipboard
open val namespaceURI: String?
Link copied to clipboard
Link copied to clipboard
open val nextSibling: Node?
Link copied to clipboard
open val nodeName: String
Link copied to clipboard
open val nodeType: Short
Link copied to clipboard
open var nodeValue: String?
Link copied to clipboard
open val offsetHeight: Int
Link copied to clipboard
open val offsetLeft: Int
Link copied to clipboard
Link copied to clipboard
open val offsetTop: Int
Link copied to clipboard
open val offsetWidth: Int
Link copied to clipboard
open var onabort: (Event) -> dynamic?
Link copied to clipboard
open var onblur: (FocusEvent) -> dynamic?
Link copied to clipboard
open var oncancel: (Event) -> dynamic?
Link copied to clipboard
open var oncanplay: (Event) -> dynamic?
Link copied to clipboard
open var oncanplaythrough: (Event) -> dynamic?
Link copied to clipboard
open var onchange: (Event) -> dynamic?
Link copied to clipboard
open var onclick: (MouseEvent) -> dynamic?
Link copied to clipboard
open var onclose: (Event) -> dynamic?
Link copied to clipboard
open var oncontextmenu: (MouseEvent) -> dynamic?
Link copied to clipboard
open var oncopy: (ClipboardEvent) -> dynamic?
Link copied to clipboard
open var oncuechange: (Event) -> dynamic?
Link copied to clipboard
open var oncut: (ClipboardEvent) -> dynamic?
Link copied to clipboard
open var ondblclick: (MouseEvent) -> dynamic?
Link copied to clipboard
open var ondrag: (DragEvent) -> dynamic?
Link copied to clipboard
open var ondragend: (DragEvent) -> dynamic?
Link copied to clipboard
open var ondragenter: (DragEvent) -> dynamic?
Link copied to clipboard
open var ondragexit: (DragEvent) -> dynamic?
Link copied to clipboard
open var ondragleave: (DragEvent) -> dynamic?
Link copied to clipboard
open var ondragover: (DragEvent) -> dynamic?
Link copied to clipboard
open var ondragstart: (DragEvent) -> dynamic?
Link copied to clipboard
open var ondrop: (DragEvent) -> dynamic?
Link copied to clipboard
open var ondurationchange: (Event) -> dynamic?
Link copied to clipboard
open var onemptied: (Event) -> dynamic?
Link copied to clipboard
open var onended: (Event) -> dynamic?
Link copied to clipboard
open var onerror: (dynamic, String, Int, Int, Any?) -> dynamic?
Link copied to clipboard
open var onfocus: (FocusEvent) -> dynamic?
Link copied to clipboard
open var ongotpointercapture: (PointerEvent) -> dynamic?
Link copied to clipboard
open var oninput: (InputEvent) -> dynamic?
Link copied to clipboard
open var oninvalid: (Event) -> dynamic?
Link copied to clipboard
open var onkeydown: (KeyboardEvent) -> dynamic?
Link copied to clipboard
open var onkeypress: (KeyboardEvent) -> dynamic?
Link copied to clipboard
open var onkeyup: (KeyboardEvent) -> dynamic?
Link copied to clipboard
open var onload: (Event) -> dynamic?
Link copied to clipboard
open var onloadeddata: (Event) -> dynamic?
Link copied to clipboard
open var onloadedmetadata: (Event) -> dynamic?
Link copied to clipboard
open var onloadend: (Event) -> dynamic?
Link copied to clipboard
open var onloadstart: (ProgressEvent) -> dynamic?
Link copied to clipboard
open var onlostpointercapture: (PointerEvent) -> dynamic?
Link copied to clipboard
open var onmousedown: (MouseEvent) -> dynamic?
Link copied to clipboard
open var onmouseenter: (MouseEvent) -> dynamic?
Link copied to clipboard
open var onmouseleave: (MouseEvent) -> dynamic?
Link copied to clipboard
open var onmousemove: (MouseEvent) -> dynamic?
Link copied to clipboard
open var onmouseout: (MouseEvent) -> dynamic?
Link copied to clipboard
open var onmouseover: (MouseEvent) -> dynamic?
Link copied to clipboard
open var onmouseup: (MouseEvent) -> dynamic?
Link copied to clipboard
open var onpaste: (ClipboardEvent) -> dynamic?
Link copied to clipboard
open var onpause: (Event) -> dynamic?
Link copied to clipboard
open var onplay: (Event) -> dynamic?
Link copied to clipboard
open var onplaying: (Event) -> dynamic?
Link copied to clipboard
open var onpointercancel: (PointerEvent) -> dynamic?
Link copied to clipboard
open var onpointerdown: (PointerEvent) -> dynamic?
Link copied to clipboard
open var onpointerenter: (PointerEvent) -> dynamic?
Link copied to clipboard
open var onpointerleave: (PointerEvent) -> dynamic?
Link copied to clipboard
open var onpointermove: (PointerEvent) -> dynamic?
Link copied to clipboard
open var onpointerout: (PointerEvent) -> dynamic?
Link copied to clipboard
open var onpointerover: (PointerEvent) -> dynamic?
Link copied to clipboard
open var onpointerup: (PointerEvent) -> dynamic?
Link copied to clipboard
open var onprogress: (ProgressEvent) -> dynamic?
Link copied to clipboard
open var onratechange: (Event) -> dynamic?
Link copied to clipboard
open var onreset: (Event) -> dynamic?
Link copied to clipboard
open var onresize: (Event) -> dynamic?
Link copied to clipboard
open var onscroll: (Event) -> dynamic?
Link copied to clipboard
open var onseeked: (Event) -> dynamic?
Link copied to clipboard
open var onseeking: (Event) -> dynamic?
Link copied to clipboard
open var onselect: (Event) -> dynamic?
Link copied to clipboard
open var onshow: (Event) -> dynamic?
Link copied to clipboard
open var onstalled: (Event) -> dynamic?
Link copied to clipboard
open var onsubmit: (Event) -> dynamic?
Link copied to clipboard
open var onsuspend: (Event) -> dynamic?
Link copied to clipboard
open var ontimeupdate: (Event) -> dynamic?
Link copied to clipboard
open var ontoggle: (Event) -> dynamic?
Link copied to clipboard
open var onvolumechange: (Event) -> dynamic?
Link copied to clipboard
open var onwaiting: (Event) -> dynamic?
Link copied to clipboard
open var onwheel: (WheelEvent) -> dynamic?
Link copied to clipboard
Link copied to clipboard
open var outerHTML: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val parentNode: Node?
Link copied to clipboard
open val prefix: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var required: Boolean
Link copied to clipboard
open val scrollHeight: Int
Link copied to clipboard
open var scrollLeft: Double
Link copied to clipboard
open var scrollTop: Double
Link copied to clipboard
open val scrollWidth: Int
Link copied to clipboard
open var selectedIndex: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var size: Int
Link copied to clipboard
open var slot: String
Link copied to clipboard
open var spellcheck: Boolean
Link copied to clipboard
Link copied to clipboard
open var tabIndex: Int
Link copied to clipboard
open val tagName: String
Link copied to clipboard
open var textContent: String?
Link copied to clipboard
open var title: String
Link copied to clipboard
open var translate: Boolean
Link copied to clipboard
open val type: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var value: String
Link copied to clipboard
open val willValidate: Boolean

Extensions

Link copied to clipboard
inline fun Element.addClass(vararg cssClasses: String): Boolean
fun Element.addClass(vararg cssClasses: String): Boolean

Adds CSS class to element. Has no effect if all specified classes are already in class attribute of the element

Link copied to clipboard
inline fun Element.appendElement(name: String, noinline init: Element.() -> Unit): Element

Appends a newly created element with the specified name to this element.

fun Element.appendElement(name: String, init: Element.() -> Unit): Element

Appends a newly created element with the specified name to this element.

Link copied to clipboard
inline fun Element.appendText(text: String): Element

Creates text node and append it to the element.

Link copied to clipboard

Returns the view of this ItemArrayLike<T> collection as List<T>

Link copied to clipboard
inline fun Node.clear()
fun Node.clear()

Removes all the children from this node.

Link copied to clipboard
inline operator fun HTMLSelectElement.get(index: Int): Element?
Link copied to clipboard
inline fun Element.hasClass(cssClass: String): Boolean
fun Element.hasClass(cssClass: String): Boolean

Returns true if the element has the given CSS class style in its 'class' attribute

Link copied to clipboard
val Node.isElement: Boolean
val Node.isElement: Boolean

Gets a value indicating whether this node is an Element.

Link copied to clipboard
val Node.isText: Boolean
val Node.isText: Boolean

Gets a value indicating whether this node is a TEXT_NODE or a CDATA_SECTION_NODE.

Link copied to clipboard
inline fun Element.removeClass(vararg cssClasses: String): Boolean

Removes all cssClasses from element. Has no effect if all specified classes are missing in class attribute of the element

fun Element.removeClass(vararg cssClasses: String): Boolean

Removes all cssClasses from element. Has no effect if all specified classes are missing in class attribute of the element

Link copied to clipboard
inline operator fun HTMLSelectElement.set(index: Int, option: HTMLOptionElement?)