pureweb.client. ValueChangedEventArgs

An event arguments class describing changes to the application state.

Method Summary

getChangeType
Returns the content of the "changeType" argument of the event object.
getNewValue
Returns the content of the "newValue" argument of the event object.
getPath
Returns the content of the "path" argument of the event object.
isDeletion
Returns a Boolean value that indicates whether the change was a deletion.
isInsertion
Returns a Boolean value that indicates whether the change was an insertion.
isModification
Returns a Boolean value that indicates whether the change was a modification.

Constructor

new ValueChangedEventArgs(path, newValue, changeType)

Initializes a new instance of ValueChangedEventArgs.
Parameters:
Name Type Argument Description
path string <nullable>
The path in the application state tree where the change occurred.
newValue string <nullable>
The value at the specified path after the change.
changeType pureweb.xml.XmlChangeType The type of change.

Method Detail

getChangeType() → {pureweb.xml.XmlChangeType}

Returns the content of the "changeType" argument of the event object.
This is the type of change, such as insertion or deletion.

getNewValue() → {string}

Returns the content of the "newValue" argument of the event object.
This is the value of the element at the specified path, after the change occurred.

getPath() → {string}

Returns the content of the "path" argument of the event object.
This is the path in the application state tree that changed, triggering the event.

isDeletion() → {boolean}

Returns a Boolean value that indicates whether the change was a deletion.

isInsertion() → {boolean}

Returns a Boolean value that indicates whether the change was an insertion.

isModification() → {boolean}

Returns a Boolean value that indicates whether the change was a modification.