Demo (Documentation)
var ContentSidebar = require('./ContentSidebar').default;
<IntlProvider locale="en">
<ContentSidebar
detailsSidebarProps={{
hasProperties: true,
hasNotices: true,
hasAccessStats: true,
hasClassification: true,
hasRetentionPolicy: true,
}}
features={FEATURES}
fileId={FILE_ID}
hasActivityFeed
hasMetadata
hasSkills
hasVersions
token={TOKEN}
{...PROPS}
/>
</IntlProvider>
Prop | Type | Default | Description |
---|---|---|---|
fileId* | string | The id of the file to preview. | |
token* | string | See the developer docs. | |
activitySidebarProps | ActivitySidebarProps | {} |
See below |
detailsSidebarProps | DetailsSidebarProps | {} |
See below |
hasActivityFeed | boolean | false |
See the developer docs. |
hasMetadata | boolean | false |
See the developer docs. |
hasSkills | boolean | false |
See the developer docs. |
hasVersions | boolean | false |
See the developer docs. |
language | string | en-US |
See the Internationalization section |
messages | Map<string, string> | See the Internationalization section | |
metadataSidebarProps | MetadataSidebarProps | {} |
See below |
requestInterceptor | function | See the developer docs. | |
responseInterceptor | function | See the developer docs. | |
skillsSidebarProps | SkillsSidebarProps | {} |
See below |
Prop | Type | Default | Description |
---|---|---|---|
onCommentCreate | function | See the developer docs. | |
onCommentDelete | function | See the developer docs. |
Prop | Type | Default | Description |
---|---|---|---|
hasAccessStats | boolean | false |
See the developer docs. |
hasNotices | boolean | false |
See the developer docs. |
hasProperties | boolean | false |
See the developer docs. |
Prop | Type | Default | Description |
---|---|---|---|
selectedTemplateKey | string |
templateKey for the template to show. If provided, |
|
no other templates will be visible. | |||
templateFilters | Array<string> |
Template field IDs for fields that should be visible and editable. | |
or string |
To show a single field, pass the ID as a string; to show multiple | ||
fields, pass an array of IDs as strings. If no templateFilters are |
|||
provided, then all fields will be visible and editable. |
Prop | Type | Default | Description |
---|---|---|---|
tbd | - | - | - |