Class: Binding

Properties
collaborativeObject gapi.drive.realtime.CollaborativeObject

The collaborative object that this registration binds to the DOM element, or null if this binding has been removed.

domElement Element

The DOM element that this registration binds to the collaborative object, or null if this binding has been removed.

Method
unbind() void

Unbinds the DOM element from the collaborative object.

new Binding(collaborativeObject, domElement)

A binding between a collaborative object in the data model and a DOM element.

Parameters

Name Type Optional Description

collaborativeObject

gapi.drive.realtime.CollaborativeObject

 

The collaborative object to bind.

Value must not be null.

domElement

Element

 

The DOM element to bind.

Value must not be null.

Throws

gapi.drive.realtime.databinding.AlreadyBoundError If domElement has already been bound.

Properties

collaborativeObject  gapi.drive.realtime.CollaborativeObject

The collaborative object that this registration binds to the DOM element, or null if this binding has been removed.

domElement  Element

The DOM element that this registration binds to the collaborative object, or null if this binding has been removed.

Method

unbind()

Unbinds the DOM element from the collaborative object.

Send feedback about...

Realtime API
Realtime API