Packages

object DomApi

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DomApi
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addEventListener[Ev <: Event](element: Base, listener: EventListener[Ev, _]): Unit

    Events

  5. def appendChild(parent: Base, child: Base): Boolean

    Tree functions

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def createCommentNode(text: String): Comment

    Comment Nodes

  9. def createHtmlElement[Ref <: Element](tag: HtmlTag[Ref]): Ref

    HTML Elements

  10. def createSvgElement[Ref <: Element](tag: SvgTag[Ref]): Ref

    SVG Elements

  11. def createTextNode(text: String): Text

    Text Nodes

  12. def debugNodeDescription(node: Node): String

    returns

    e.g. a, div#mainSection, span.sideNote.sizeSmall

  13. def debugNodeInnerHtml(node: Node): String
  14. def debugNodeOuterHtml(node: Node): String
  15. def debugPath(element: Node, initial: List[String] = Nil): List[String]

    returns

    hierarchical path describing the position and identity of this node, starting with the root.

    Annotations
    @tailrec()
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def getAriaAttribute[V](element: Base, attr: AriaAttr[V]): UndefOr[V]

    Aria attributes

  19. def getAriaAttributeRaw(element: Base, attr: AriaAttr[_]): UndefOr[String]
  20. def getChecked(element: Element): UndefOr[Boolean]

    Input related stuff

  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def getFiles(element: Element): UndefOr[List[File]]

    See also

    https://developer.mozilla.org/en-US/docs/Web/API/File_API/Using_files_from_web_applications

  23. def getHtmlAttribute[V](element: Base, attr: HtmlAttr[V]): UndefOr[V]

    HTML Attributes

  24. def getHtmlAttributeRaw(element: Base, attr: HtmlAttr[_]): UndefOr[String]
  25. def getHtmlProperty[V, DomV](element: Base, prop: HtmlProp[V, DomV]): UndefOr[V]

    Returns js.undefined when the property is missing on the element.

    Returns js.undefined when the property is missing on the element. If the element type supports this property, it should never be js.undefined.

  26. def getHtmlPropertyRaw[V, DomV](element: Base, prop: HtmlProp[V, DomV]): UndefOr[DomV]
  27. def getHtmlStyleRaw(element: Base, styleProp: StyleProp[_]): String

    Note: this only gets inline style values – those set via the style attribute, which includes all style props set by Laminar.

    Note: this only gets inline style values – those set via the style attribute, which includes all style props set by Laminar. It does not account for CSS declarations in <style> tags.

    Returns empty string if the given style property is not defined in this element's inline styles.

    See https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyValue Contrast with https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle

  28. def getSvgAttribute[V](element: Base, attr: SvgAttr[V]): UndefOr[V]

    SVG Attributes

  29. def getSvgAttributeRaw(element: Base, attr: SvgAttr[_]): UndefOr[String]
  30. def getValue(element: Element): UndefOr[String]
  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. def insertBefore(parent: Base, newChild: Base, referenceChild: Base): Boolean
  33. def isCustomElement(element: Element): Boolean

    Custom Elements

  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  38. def removeAriaAttribute(element: Base, attr: AriaAttr[_]): Unit
  39. def removeChild(parent: Base, child: Base): Boolean
  40. def removeEventListener[Ev <: Event](element: Base, listener: EventListener[Ev, _]): Unit
  41. def removeHtmlAttribute(element: Base, attr: HtmlAttr[_]): Unit
  42. def removeSvgAttribute(element: Base, attr: SvgAttr[_]): Unit
  43. def replaceChild(parent: Base, newChild: Base, oldChild: Base): Boolean
  44. def setAriaAttribute[V](element: Base, attr: AriaAttr[V], value: V): Unit
  45. def setChecked(element: Element, checked: Boolean): Boolean

    returns

    whether the operation succeeded

  46. def setCommentNodeText(node: CommentNode, text: String): Unit
  47. def setHtmlAnyStyle[V](element: Base, style: StyleProp[V], value: |[V, String]): Unit
  48. def setHtmlAttribute[V](element: Base, attr: HtmlAttr[V], value: V): Unit
  49. def setHtmlProperty[V, DomV](element: Base, prop: HtmlProp[V, DomV], value: V): Unit
  50. def setHtmlStringStyle(element: Base, styleProp: StyleProp[_], value: String): Unit
  51. def setHtmlStyle[V](element: Base, styleProp: StyleProp[V], value: V): Unit
  52. def setSvgAttribute[V](element: Base, attr: SvgAttr[V], value: V): Unit
  53. def setTextNodeText(node: TextNode, text: String): Unit
  54. def setValue(element: Element, value: String): Boolean

    returns

    whether the operation succeeded

  55. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  56. def toString(): String
    Definition Classes
    AnyRef → Any
  57. def unsafeParseHtmlString[Ref <: Element](tag: HtmlTag[Ref], dangerousHtmlString: String): Ref

    #WARNING: HTML can contain Javascript code, which this function will execute blindly! Only use on trusted HTML strings.

    #WARNING: HTML can contain Javascript code, which this function will execute blindly! Only use on trusted HTML strings.

    tag

    the HTML tag you expect from parsing. Will throw exception if does not match the result.

  58. def unsafeParseHtmlString(dangerousHtmlString: String): Element

    #WARNING: HTML can contain Javascript code, which this function will execute blindly! Only use on trusted HTML strings.

  59. def unsafeParseSvgString[Ref <: Element](tag: SvgTag[Ref], dangerousSvgString: String): Ref

    #WARNING: SVG can contain Javascript code, which this function will be execute blindly! Only use on trusted SVG strings.

    #WARNING: SVG can contain Javascript code, which this function will be execute blindly! Only use on trusted SVG strings.

    tag

    the SVG tag you expect from parsing. Will throw exception if does not match the result.

  60. def unsafeParseSvgString(dangerousSvgString: String): Element

    #WARNING: SVG can contain Javascript code, which this function will execute blindly! Only use on trusted SVG strings.

  61. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  62. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  63. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped