MoveChild

io.eezo.live.Patch.MoveChild
final case class MoveChild(path: List[Int], expect: String, from: Int, to: Int)

Moves child from of the element at path to sit at to. The two indices are read one at a time, the way the DOM applies them: the node is removed at from, and to names its position in the shortened list. Emitted only for keys off the longest stable subsequence, so a reorder costs the minimal number of moves, not one per shifted row.

Attributes

Source
Patch.scala

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala