ParentNode

com.raquo.laminar.nodes.ParentNode$
See theParentNode companion trait
object ParentNode

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ParentNode.type

Members list

Type members

Types

type Base = ParentNode[Element]

Value members

Concrete methods

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

Note: can also be used to move children, even within the same parent

Note: can also be used to move children, even within the same parent

Attributes

Returns

Whether child was successfully appended

def insertChildAfter(parent: Base, newChild: Base, referenceChild: Base): Boolean
def insertChildAtIndex(parent: Base, child: Base, index: Int): Boolean

Note: this method can also be used to move children, even within the same parent

Note: this method can also be used to move children, even within the same parent

Attributes

Returns

Whether child was successfully inserted

def insertChildBefore(parent: Base, newChild: Base, referenceChild: Base): Boolean
def removeChild(parent: Base, child: Base): Boolean

Attributes

Returns

Whether child was successfully removed

def replaceChild(parent: Base, oldChild: Base, newChild: Base): Boolean

Note: Does nothing if oldChild was not found in parent's children, or if oldChild==newChild

Note: Does nothing if oldChild was not found in parent's children, or if oldChild==newChild

Attributes

Returns

Whether child was replaced