[]
        
(Showing Draft Content)

Wijmo_Grid_Immutable.Datachangeeventargs

DataChangeEventArgs Class

Provides data for the ImmutabilityProvider.dataChanged event.

Heirarchy

Constructors

Properties

Constructors

constructor

  • Initializes a new instance of the DataChangeEventArgs class.

    Parameters

    • action: DataChangeAction

      Type of action that caused the event to fire.

    • oldItem: any

      Original item that was removed or changed.

    • newItem: any

      New item that was added or changed.

    • itemIndex: any

      Index of the item.

    Returns DataChangeEventArgs

Properties

action

Gets the action that caused the event to fire.

itemIndex

itemIndex: any

Gets an index of the item affected by the change in the ImmutabilityProvider.itemsSource array, depending on the action:

  • Remove: the removed item index
  • Add: the added item index
  • Change: the changed item index

newItem

newItem: any

Gets an item with changes, depending on the action:

  • Remove: a null value.
  • Add: the new added item
  • Change: the cloned item with modifications

oldItem

oldItem: any

Gets an existing item affected by the change, depending on the action:

Static empty

empty: EventArgs

Provides a value to use with events that do not have event data.