Cell

This widget represents a space in a CollectionView on which an item is displayed. Cell widgets are not created by the application but by the CollectionView widget. Includes Composite

Properties

item

Type: any

The item that is currently represented by this cell. This property is not set by the application but by the CollectionView widget.

itemIndex

Type: number

The index of the item that is currently represented by this cell. This property is not set by the application but by the CollectionView widget.

Events

“change:item” (widget, item, options)

Parameters:

  • widget: Cell
  • item: any, the new value of item.
  • options: Object

Fired when a collection item is assigned to this cell. Use this event to configure the widgets in this cell to represent the assigned item.

“change:itemIndex” (widget, itemIndex, options)

Parameters:

  • widget: Cell
  • itemIndex: number, the new value of itemIndex.
  • options: Object

Fired when the index of the assigned item changes, either by assigning a new item or by inserting/removing items above the current item.

See also