Hide

Class: ValueChangedEvent

Properties
bubbles boolean

Whether this event bubbles.

compoundOperationNames Array of string

The list of names from the hierarchy of compound operations that initiated this event.

isLocal boolean

True if this event originated in the local session.

isRedo boolean

True if this event originated from a redo call.

isUndo boolean

True if this event originated from an undo call.

newValue any type

The new property value.

oldValue any type

The old property value.

preventDefault void

Prevents an event from performing its default action. In the Realtime API, this function is only present for compatibility with the DOM event interface and therefore it does nothing.

property string

The property whose value changed.

sessionId string

The id of the session that initiated this event.

target Object

The collaborative object that initiated this event.

type string

The type of the event.

userId string

The user id of the user that initiated this event.

Method
stopPropagation() void

Stops an event which bubbles from propagating to the target's parent.

new ValueChangedEvent(target, sessionId, userId, compoundOperationNames, isLocal, isUndo, isRedo, property, oldValue, newValue)

Parameters

Name Type Optional Description

target

gapi.drive.realtime.CollaborativeObject

 

The collaborative object that initiated the event.

Value must not be null.

sessionId

string

 

The id of the session that initiated the event.

userId

string

 

The user id of the user that initiated the event.

compoundOperationNames

Array of string

 

The list of names from the hierarchy of compound operations that initiated the event.

Value must not be null.

isLocal

boolean

 

True if the event originated in the local session.

isUndo

boolean

 

True if the event originated from an undo call.

isRedo

boolean

 

True if the event originated from a redo call.

property

string

 

The property whose value changed.

oldValue

any type

 

The old property value.

newValue

any type

 

The new property value.

Extends
gapi.drive.realtime.BaseModelEvent

Properties

bubbles  boolean

Whether this event bubbles.

Inherited from
gapi.drive.realtime.BaseModelEvent#bubbles

compoundOperationNames  Array of string

The list of names from the hierarchy of compound operations that initiated this event.

Inherited from
gapi.drive.realtime.BaseModelEvent#compoundOperationNames

isLocal  boolean

True if this event originated in the local session.

Inherited from
gapi.drive.realtime.BaseModelEvent#isLocal

isRedo  boolean

True if this event originated from a redo call.

Inherited from
gapi.drive.realtime.BaseModelEvent#isRedo

isUndo  boolean

True if this event originated from an undo call.

Inherited from
gapi.drive.realtime.BaseModelEvent#isUndo

newValue  any type

The new property value.

oldValue  any type

The old property value.

preventDefault

Prevents an event from performing its default action. In the Realtime API, this function is only present for compatibility with the DOM event interface and therefore it does nothing.

Inherited from
gapi.drive.realtime.BaseModelEvent#preventDefault

property  string

The property whose value changed.

sessionId  string

The id of the session that initiated this event.

Inherited from
gapi.drive.realtime.BaseModelEvent#sessionId

target  Object

The collaborative object that initiated this event.

Inherited from
gapi.drive.realtime.BaseModelEvent#target

type  string

The type of the event.

Inherited from
gapi.drive.realtime.BaseModelEvent#type

userId  string

The user id of the user that initiated this event.

Inherited from
gapi.drive.realtime.BaseModelEvent#userId

Method

stopPropagation()

Stops an event which bubbles from propagating to the target's parent.

Inherited from
gapi.drive.realtime.BaseModelEvent#stopPropagation

Send feedback about...

Realtime API