ActiveListSwappedEvent<T>

TYPE DEFINITION

Represents an activation of an ActiveList.

Since 1.0.0

Extends ActiveListBaseEvent

Properties

  • index

    An object containing the indexes of the items which were swapped.

    Since 1.0.0

    Object
    a: number

    The index of the first item before it was swapped.

    Note: this was the index at the time of the activation, it might no longer be accurate.

    Since 1.0.0

    b: number

    The index of the second item before it was swapped.

    Note: this was the index at the time of the activation, it might no longer be accurate.

    Since 1.0.0

  • type

    "SWAPPED"

    Which type occurred

    Since 1.0.0

  • value

    An object containing the value of the items which were swapped.

    Since 1.0.0

    Object
    a: T

    The value of the first item which was swapped.

    Note: this was the value at the time of the swap, it might no longer be accurate. Keep in mind that when the value is an object or an array, they can still be mutated, because no copy is made.

    Since 1.0.0

    Since

    Signature

    ():
    b: T

    The value of the second item which was swapped.

    Note: this was the value at the time of the swap, it might no longer be accurate. Keep in mind that when the value is an object or an array, they can still be mutated, because no copy is made.

    Since 1.0.0

    Since

    Signature

    ():