Mixins

Classes

module:bff/list
module:bff/record
module:bff/view

Mixins

bff/event-emitter
bff/event-listener

Events


change:length

Parameters:
Name Type Description
newLength number

The current length of the List.

oldLength number

The previous length of the List.

list module:bff/list

The List whose length has changed.

Source:

item:added

Parameters:
Name Type Description
item any

The item that was added to the List.

index number

The position withing the List where the item was added.

list module:bff/list

The List to which the item was added.

Source:

item:removed

Parameters:
Name Type Description
item any

The item that was removed from the List.

index number

The position withing the List where the item was removed.

list module:bff/list

The List from which the item was removed.

Source:

item:replaced

Parameters:
Name Type Description
newItem any

The item that was added to the List.

oldItem any

The item that was removed from the List.

index number

The position withing the List where the item was replaced.

list module:bff/list

The List in which the item was replaced.

Source:

change:[property name]

Emitted when the value of the property with name [property name] has changed. This event is only emitted if the assigned value actually differs from the previous one, compared using strict equality.

Parameters:
Name Type Description
newValue any

The new property value

oldValue any

The previous property value

self module:bff/record

The record that triggered the event

Source:

change

Emitted when some property value has changed. This event is only emitted if the assigned value actually differs from the previous one, compared using strict equality.

Parameters:
Name Type Description
propertyName string

The name of the record property that has changed

newValue any

The new property value

oldValue any

The previous property value

self module:bff/record

The record that triggered the event

Source:

prechange

Emitted when some property value is about to be assigned a new value. This event is always emitted upon assignment, even is the value to be assigned is the same as the current value.

Parameters:
Name Type Description
propertyName string

The name of the record property that is about to be assigned to

currentValue any

The current property value

self module:bff/record

The record that triggered the event

Source:

prechange:[property name]

Emitted when the property with name [property name] is about to be assigned a new value. This event is always emitted upon assignment, even is the value to be assigned is the same as the current value.

Parameters:
Name Type Description
currentValue any

The current property value

self module:bff/record

The record that triggered the event

Source: