ReactiveElement

com.raquo.laminar.nodes.ReactiveElement
See theReactiveElement companion object
trait ReactiveElement[+Ref <: Element] extends ChildNode[Ref], ParentNode[Ref]

Attributes

Companion
object
Graph
Supertypes
trait ParentNode[Ref]
trait ChildNode[Ref]
trait Modifier[ReactiveElement[Element]]
trait ReactiveNode[Ref]
class Object
trait Matchable
class Any
Show all
Known subtypes
class ReactiveHtmlElement[Ref]
class ReactiveSvgElement[Ref]

Members list

Value members

Concrete methods

def amend(mods: Modifier[ReactiveElement[Ref]]*): ReactiveElement.this.type
def amendThis(makeMod: ReactiveElement[Ref] => Modifier[ReactiveElement[Ref]]): ReactiveElement.this.type
def eventListeners: List[Base]
def events[Ev <: Event, Out](prop: EventProcessor[Ev, Out]): EventStream[Out]

Create and get a stream of events on this node

Create and get a stream of events on this node

Attributes

Inherited methods

override def apply(parentNode: Base): Unit

You can count on this method being a no-op in your libraries and end user code.

You can count on this method being a no-op in your libraries and end user code.

The reason this method is not abstract is to avoid broken SAM sugar in case of meta modifiers. See https://github.com/raquo/scala-dom-types/issues/27

Attributes

Definition Classes
Inherited from:
ChildNode
def maybeParent: Option[Base]

Attributes

Inherited from:
ChildNode

Abstract fields

val tag: Tag[ReactiveElement[Ref]]

Inherited fields

val ref: Ref

Reference to the real DOM node which this ReactiveNode represents. Laminar nodes MUST NOT share the same ref. This isn't "virtual dom"!

Reference to the real DOM node which this ReactiveNode represents. Laminar nodes MUST NOT share the same ref. This isn't "virtual dom"!

Attributes

Inherited from:
ReactiveNode