Document Info
Description
The document info section allows to change additional parameters for the document (document owner, folder where the document is stored, uploading date, sharing settings).
Parameters
Name | Description | Type | Example |
author | Defines the name of the document author/creator. Deprecated since version 5.4, please use owner instead. | string | “John Smith” |
created | Defines the document creation date. Deprecated since version 5.4, please use uploaded instead. | string | “2010-07-07 3:46 PM” |
favorite | Defines the highlighting state of the Favorite icon. When the user clicks the icon, the onMetaChange event is called. If the parameter is undefined, the Favorite icon is not displayed at the editor window header. | boolean | true |
folder | Defines the folder where the document is stored (can be empty in case the document is stored in the root folder). | string | “Example Files” |
owner | Defines the name of the document owner/creator. | string | “John Smith” |
sharingSettings | Displays the information about the settings which allow to share the document with other users:
| array of object | |
uploaded | Defines the document uploading date. | string | “2010-07-07 3:46 PM” |
Example
var docEditor = new DocsAPI.DocEditor("placeholder", {
"document": {
"info": {
"favorite": true,
"folder": "Example Files",
"owner": "John Smith",
"sharingSettings": [
{
"permissions": "Full Access",
"user": "John Smith"
},
{
"isLink": true,
"permissions": "Read Only",
"user": "External link"
},
...
],
"uploaded": "2010-07-07 3:46 PM"
},
...
},
...
});
当前内容版权归 Onlyoffice 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Onlyoffice .