ActiveListActivatedEvent<T>

TYPE DEFINITION

Represents an activation of an ActiveList.

Since 1.0.0

Extends ActiveListBaseEvent

Properties

  • deactivatedIndex

    number

    The index of the deactivated item, will be -1 when no index was deactivated as part of the activation.

    A deactivation will only happen as part of an activation when maxActivationLimit is set to a number and maxActivationLimitBehavior is set to circular.

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

    Since 1.5.0

  • deactivatedValue

    T | null

    The value which was deactivated, will be null when no value was deactivated as part of the activation.

    A deactivation will only happen as part of an activation when maxActivationLimit is set to a number and maxActivationLimitBehavior is set to circular.

    Note: these are the values at the time of deactivation, they 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.5.0

  • index

    number

    The index of the activated item.

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

    Since 1.0.0

  • type

    "ACTIVATED"

    Which type occurred

    Since 1.0.0

  • value

    T

    The value which was activated.

    Note: this was the value at the time of activation, 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