Google Drive collaborative documents are made of 4 types of collaborative elements: String, Lists, Maps and Custom objects. A Google Drive collaborative document can have as many of these collaborative elements as they need. As a demonstration, You will find below UI widgets representing collaborative elements of each type.
Collaborative strings are just like normal strings, except that all browser sessions will be notified and updated when the string changes. Events are fired when strings are inserted to the collaborative string or when part of the string is deleted.
A collaborative list state is shared across sessions. Events are fired when items are added or removed to the list or when an existig item's value is set.
List items |
|
Collaborative maps share key/value state across sessions. They support standard map operations. Events are fired when key-value pairs are changed.
|
|
Collaborative custom object have properties who's state is shared across sessions. Events are fired when property values are changed.
Properties | Values |
Name | |
Director | |
Notes | |
Rating |