Packages

final case class Generic(tag: String, attributes: Map[String, AttributeValue] = Map.empty, children: Vector[Dom] = Vector.empty) extends Element with Product with Serializable

Generic HTML element

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Generic
  2. Element
  3. CssSelectable
  4. Dom
  5. Modifier
  6. Serializable
  7. Product
  8. Equals
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Generic(tag: String, attributes: Map[String, AttributeValue] = Map.empty, children: Vector[Dom] = Vector.empty)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def &(other: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  4. def +(adjacent: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def >(child: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  7. def >>(descendant: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  8. def active: CssSelector
    Definition Classes
    CssSelectable
  9. def addAttributes(attributes: Iterable[Attribute]): Generic
    Definition Classes
    GenericElement
  10. def addAttributes(attribute: Attribute, attributes: Attribute*): Element
    Definition Classes
    Element
  11. def addChildren(child: Dom, children: Dom*): Element
    Definition Classes
    Element
  12. def addChildren(children: Iterable[Dom]): Element
    Definition Classes
    Element
  13. def adjacentSibling(sel: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  14. def after: CssSelector
    Definition Classes
    CssSelectable
  15. def and(sel: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  16. def apply(modifiers: Iterable[Modifier]): Generic
    Definition Classes
    GenericElement
  17. def apply(modifier: Modifier, modifiers: Modifier*): Generic

    Apply modifiers (attributes and children) to this element

    Apply modifiers (attributes and children) to this element

    Definition Classes
    GenericElement
  18. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  19. def attr(name: String, value: String): Generic
    Definition Classes
    GenericElement
  20. def attr(name: String, value: AttributeValue): Generic

    Add or update an attribute

    Add or update an attribute

    Definition Classes
    GenericElement
  21. val attributes: Map[String, AttributeValue]
    Definition Classes
    GenericElement
  22. def before: CssSelector
    Definition Classes
    CssSelectable
  23. def child(sel: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  24. val children: Vector[Dom]
    Definition Classes
    GenericElement
  25. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  26. def collect(predicate: PartialFunction[Dom, Dom]): List[Dom]

    Collect all elements matching the predicate

    Collect all elements matching the predicate

    Definition Classes
    Dom
  27. def descendant(sel: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def filter(predicate: (Dom) => Boolean): Dom

    Filter children recursively based on a predicate

    Filter children recursively based on a predicate

    Definition Classes
    Dom
  30. def find(predicate: (Dom) => Boolean): Option[Dom]

    Find the first element matching the predicate

    Find the first element matching the predicate

    Definition Classes
    Dom
  31. def firstChild: CssSelector
    Definition Classes
    CssSelectable
  32. def firstLetter: CssSelector
    Definition Classes
    CssSelectable
  33. def firstLine: CssSelector
    Definition Classes
    CssSelectable
  34. def focus: CssSelector
    Definition Classes
    CssSelectable
  35. def generalSibling(sel: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  36. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  37. def host(sel: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  38. def host: CssSelector
    Definition Classes
    CssSelectable
  39. def hostContext(sel: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  40. def hover: CssSelector
    Definition Classes
    CssSelectable
  41. def isEmpty: Boolean
    Definition Classes
    Dom
  42. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  43. def lastChild: CssSelector
    Definition Classes
    CssSelectable
  44. def modify(element: Element): Element
    Definition Classes
    Modifier
  45. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. def not(sel: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  47. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  48. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  49. def nthChild(formula: String): CssSelector
    Definition Classes
    CssSelectable
  50. def nthChild(n: Int): CssSelector
    Definition Classes
    CssSelectable
  51. def or(sel: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  52. def part(name: String): CssSelector
    Definition Classes
    CssSelectable
  53. def productElementNames: Iterator[String]
    Definition Classes
    Product
  54. def removeAttr(name: String): Generic

    Remove an attribute

    Remove an attribute

    Definition Classes
    GenericElement
  55. def render(indentation: Boolean): String

    Render the DOM to HTML string with optional indentation

    Render the DOM to HTML string with optional indentation

    Definition Classes
    Dom
  56. def render: String

    Render the DOM to HTML string without indentation

    Render the DOM to HTML string without indentation

    Definition Classes
    Dom
  57. def renderElementInternal(state: RenderState, escapeContent: Boolean): CharSequence
    Attributes
    protected
    Definition Classes
    Element
  58. def renderMinified: String

    Render the DOM to minified HTML string

    Render the DOM to minified HTML string

    Definition Classes
    Dom
  59. def replaceChildren(children: Dom*): Generic

    Replace all children

    Replace all children

    Definition Classes
    GenericElement
  60. val selector: CssSelector
    Definition Classes
    ElementCssSelectable
  61. def shouldEscapeContent: Boolean
    Attributes
    protected
    Definition Classes
    GenericElement
  62. def slotted(sel: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  63. def slotted: CssSelector
    Definition Classes
    CssSelectable
  64. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  65. val tag: String
    Definition Classes
    GenericElement
  66. def transform(f: (Dom) => Dom): Dom

    Transform this DOM node by applying a function

    Transform this DOM node by applying a function

    Definition Classes
    Dom
  67. def visited: CssSelector
    Definition Classes
    CssSelectable
  68. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  69. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  70. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  71. def when(condition: Boolean)(modifiers: Modifier*): Generic

    Add children conditionally

    Add children conditionally

    Definition Classes
    GenericElement
  72. def whenSome[T](option: Option[T])(f: (T) => Seq[Modifier]): Generic

    Add children if Option is defined

    Add children if Option is defined

    Definition Classes
    GenericElement
  73. def withAttribute(attr: String, value: String): CssSelector
    Definition Classes
    CssSelectable
  74. def withAttribute(attr: String): CssSelector
    Definition Classes
    CssSelectable
  75. def withAttributeContaining(attr: String, value: String): CssSelector
    Definition Classes
    CssSelectable
  76. def withAttributeEnding(attr: String, value: String): CssSelector
    Definition Classes
    CssSelectable
  77. def withAttributePrefix(attr: String, value: String): CssSelector
    Definition Classes
    CssSelectable
  78. def withAttributeStarting(attr: String, value: String): CssSelector
    Definition Classes
    CssSelectable
  79. def withAttributeWord(attr: String, value: String): CssSelector
    Definition Classes
    CssSelectable
  80. def |(other: CssSelector): CssSelector
    Definition Classes
    CssSelectable
  81. def ~(sibling: CssSelector): CssSelector
    Definition Classes
    CssSelectable

Deprecated Value Members

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

    (Since version 9)

Inherited from Element

Inherited from CssSelectable

Inherited from Dom

Inherited from Modifier

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped