Class

fm.common.rich

RichElement

Related Doc: package rich

Permalink

final class RichElement extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichElement
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichElement(elem: Element)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. def addClass(className: String): Unit

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def childElements: Seq[Element]

    Permalink
  7. def closestWithAncestorChildren[A <: Element](selector: String)(implicit arg0: ClassTag[A], elementType: ElementType[A]): A

    Permalink

    Check the element and ancestors' children to find the closest (previous) element that matches a class AND selector.

    Check the element and ancestors' children to find the closest (previous) element that matches a class AND selector. (e.g. closestWithAncestorChildren("input[type='password']") will find the closest password input field that was defined before the current element)

  8. def closestWithAncestorChildren[A <: Element](implicit arg0: ClassTag[A], elementType: ElementType[A]): A

    Permalink

    Find the closest (this element, ancestor, or a child of an ancestor) that matches a class.

    Find the closest (this element, ancestor, or a child of an ancestor) that matches a class. (e.g. closestWithAncestorChildren[Input] will find the closest input field that was defined before the current element)

  9. def computedStyle(pseudoElem: Option[String]): CSSStyleDeclaration

    Permalink

    Shortcut for window.getComputedStyle(elem, pseudoElem)

  10. def computedStyle(pseudoElem: String): CSSStyleDeclaration

    Permalink

    Shortcut for window.getComputedStyle(elem, pseudoElem)

  11. def computedStyle: CSSStyleDeclaration

    Permalink

    Shortcut for window.getComputedStyle(elem)

  12. def data: UserDataAttributes

    Permalink

    Helpers for accessing the "user-" attributes

    Helpers for accessing the "user-" attributes

    https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes

  13. val elem: Element

    Permalink
  14. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  15. def getParentElement: Option[Element]

    Permalink
  16. def hasChildElements: Boolean

    Permalink
  17. def hasChildNodes: Boolean

    Permalink
  18. def hasClass(className: String): Boolean

    Permalink
  19. def hasParentElement: Boolean

    Permalink
  20. def hasParentNode: Boolean

    Permalink
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def removeClass(className: String): Unit

    Permalink
  23. def toString(): String

    Permalink
    Definition Classes
    Any
  24. def toggleAttributeValue(attrName: String, valueA: String, valueB: String): Unit

    Permalink

    Toggle between two attribute values, e.g.

    Toggle between two attribute values, e.g. (

    passwordField.toggleAttributeValue("type", "text", "password")

    ) passwordField.toggleAttributeValue("type", "text", "password") }}}

  25. def toggleClass(valueA: String, valueB: String): Unit

    Permalink

    Toggle between two classes, e.g.

    Toggle between two classes, e.g. (

    icon.toggleClass("glyphicon-eye-close", "glyphicon-eye-open")

    ) icon.toggleClass("glyphicon-eye-close", "glyphicon-eye-open") }}}

Inherited from AnyVal

Inherited from Any

Ungrouped