The attachments sidebar options allow to specify options available for the Attachments sidebar.
Properties:
Name | Type | Description |
---|---|---|
disablePreview |
boolean | If true, the preview of the attachment will be disabled and attachments can only be downloaded. |
Example
Disabling preview of attachments.
PSPDFKit.load({
initialViewState: new PSPDFKit.ViewState({
sidebarOptions: {
[PSPDFKit.SidebarMode.ATTACHMENTS]: {
disablePreview: true
}
}
})
});