Reordering

com.alecdorrington.laminarcomponents.Reordering
See theReordering companion object
final case class Reordering(rows: Vector[Extent], from: Int, offset: Double)

A row of a list being dragged into a new place, against the rows as they lay when the drag began, the rows it passes moving aside to make room.

Value parameters

from

The dragged row's place.

offset

How far down it has been dragged, in pixels (up where negative).

rows

Each row's extent down the page, in order.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def shift(at: Int): Double

Measures how far down a row is drawn from its place: the dragged row as far as it was dragged, and each row it passed by as much room as it takes.

Measures how far down a row is drawn from its place: the dragged row as far as it was dragged, and each row it passed by as much room as it takes.

Value parameters

at

The row's place.

Attributes

Returns

How far down it is drawn, in pixels (up where negative).

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
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

Concrete fields

val to: Int

Where the dragged row lands: past every row whose middle its leading edge has crossed.

Where the dragged row lands: past every row whose middle its leading edge has crossed.

Attributes