Element
Constructors
Properties
attributes
open val attributes: NamedNodeMapclassList
open val classList: DOMTokenListclassName
open var className: StringclientHeight
open val clientHeight: IntclientLeft
open val clientLeft: IntclientTop
open val clientTop: IntclientWidth
open val clientWidth: Intid
open var id: StringinnerHTML
open var innerHTML: StringlocalName
open val localName: StringnamespaceURI
open val namespaceURI: String?outerHTML
open var outerHTML: Stringprefix
open val prefix: String?scrollHeight
open val scrollHeight: IntscrollLeft
open var scrollLeft: DoublescrollTop
open var scrollTop: DoublescrollWidth
open val scrollWidth: IntshadowRoot
open val shadowRoot: ShadowRoot?slot
open var slot: StringtagName
open val tagName: StringFunctions
attachShadow
fun attachShadow(init: ShadowRootInit): ShadowRootgetAttribute
fun getAttribute(qualifiedName: String): String?getAttributeNames
fun getAttributeNames(): Array<String>getAttributeNode
fun getAttributeNode(qualifiedName: String): Attr?getAttributeNodeNS
fun getAttributeNodeNS(
namespace: String?,
localName: String
): Attr?getAttributeNS
fun getAttributeNS(
namespace: String?,
localName: String
): String?getBoundingClientRect
fun getBoundingClientRect(): DOMRectgetClientRects
fun getClientRects(): Array<DOMRect>getElementsByClassName
fun getElementsByClassName(
classNames: String
): HTMLCollectiongetElementsByTagName
fun getElementsByTagName(
qualifiedName: String
): HTMLCollectiongetElementsByTagNameNS
fun getElementsByTagNameNS(
namespace: String?,
localName: String
): HTMLCollectionhasAttribute
fun hasAttribute(qualifiedName: String): BooleanhasAttributeNS
fun hasAttributeNS(
namespace: String?,
localName: String
): BooleanhasAttributes
fun hasAttributes(): BooleanhasPointerCapture
fun hasPointerCapture(pointerId: Int): BooleaninsertAdjacentHTML
fun insertAdjacentHTML(position: String, text: String)insertAdjacentText
fun insertAdjacentText(where: String, data: String)matches
fun matches(selectors: String): BooleanreleasePointerCapture
fun releasePointerCapture(pointerId: Int)removeAttribute
fun removeAttribute(qualifiedName: String)removeAttributeNS
fun removeAttributeNS(namespace: String?, localName: String)requestFullscreen
fun requestFullscreen(): Promise<Unit>scroll
fun scroll(options: ScrollToOptions = definedExternally)fun scroll(x: Double, y: Double)scrollBy
fun scrollBy(options: ScrollToOptions = definedExternally)fun scrollBy(x: Double, y: Double)scrollIntoView
fun scrollIntoView()fun scrollIntoView(arg: dynamic)scrollTo
fun scrollTo(options: ScrollToOptions = definedExternally)fun scrollTo(x: Double, y: Double)setAttribute
fun setAttribute(qualifiedName: String, value: String)setAttributeNS
fun setAttributeNS(
namespace: String?,
qualifiedName: String,
value: String)setPointerCapture
fun setPointerCapture(pointerId: Int)webkitMatchesSelector
fun webkitMatchesSelector(selectors: String): BooleanCompanion Object Properties
ATTRIBUTE_NODE
val ATTRIBUTE_NODE: ShortCDATA_SECTION_NODE
val CDATA_SECTION_NODE: ShortCOMMENT_NODE
val COMMENT_NODE: ShortDOCUMENT_FRAGMENT_NODE
val DOCUMENT_FRAGMENT_NODE: ShortDOCUMENT_NODE
val DOCUMENT_NODE: ShortDOCUMENT_POSITION_CONTAINED_BY
val DOCUMENT_POSITION_CONTAINED_BY: ShortDOCUMENT_POSITION_CONTAINS
val DOCUMENT_POSITION_CONTAINS: ShortDOCUMENT_POSITION_DISCONNECTED
val DOCUMENT_POSITION_DISCONNECTED: ShortDOCUMENT_POSITION_FOLLOWING
val DOCUMENT_POSITION_FOLLOWING: ShortDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
val DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: ShortDOCUMENT_POSITION_PRECEDING
val DOCUMENT_POSITION_PRECEDING: ShortDOCUMENT_TYPE_NODE
val DOCUMENT_TYPE_NODE: ShortELEMENT_NODE
val ELEMENT_NODE: ShortENTITY_NODE
val ENTITY_NODE: ShortENTITY_REFERENCE_NODE
val ENTITY_REFERENCE_NODE: ShortNOTATION_NODE
val NOTATION_NODE: ShortPROCESSING_INSTRUCTION_NODE
val PROCESSING_INSTRUCTION_NODE: ShortTEXT_NODE
val TEXT_NODE: ShortExtension Properties
Extension Functions
addClass
Adds CSS class to element. Has no effect if all specified classes are already in class attribute of the element
fun Element.addClass(vararg cssClasses: String): BooleanhasClass
Returns true if the element has the given CSS class style in its 'class' attribute
fun Element.hasClass(cssClass: String): BooleanremoveClass
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): BooleanInheritors
HTMLElement
Exposes the JavaScript HTMLElement to Kotlin
abstract class HTMLElement :
Element,
GlobalEventHandlers,
DocumentAndElementEventHandlers,
ElementContentEditable,
ElementCSSInlineStyleSVGElement
Exposes the JavaScript SVGElement to Kotlin
abstract class SVGElement :
Element,
ElementCSSInlineStyle,
GlobalEventHandlers,
SVGElementInstance