Document Info

Description

The document info section allows to change additional parameters for the document (document author, folder where the document is stored, creation date, sharing settings).

Parameters
Name Description Type Example
Defines the name of the document author/creator. string "John Smith"
Defines the document creation date. string "2010-07-07 3:46 PM"
Defines the folder where the document is stored (can be empty in case the document is stored in the root folder). string "Example Files"
Defines the settings which will allow to share the document with other users:
  • permissions - the access rights for the user with the name above. Can be Full Access, Read Only or Deny Access
    type: string
    example: "Full Access"
  • user - the name of the user the document will be shared with
    type: string
    example: "John Smith".
array of object
Example
var docEditor = new DocsAPI.DocEditor("placeholder", {
    "document": {
        "info": {
            "author": "John Smith",
            "created": "2010-07-07 3:46 PM",
            "folder": "Example Files",
            "sharingSettings": [
                {
                    "permissions": "Full Access",
                    "user": "John Smith"
                },
                {
                    "permissions": "Read Only",
                    "user": "Kate Cage"
                },
                ...
            ]
        },
        ...
    },
    ...
});