Version: 20.05

Attachments

The attachments property is used to configure the attachments card in the Details Screen. Currently Workspaces support the following customization: duplicates, filter and uploadWithoutClaim.

Options

duplicates

When set to true, this config removes duplicates from attachments UI.

filter

When configured, depending on the filter.action it will include/exclude any attachments that match the filter.regex pattern.

uploadWithoutClaim

When set to true, it removes the hardcoded claim business rule from upload button.

Note

Please note we are sending a query param in the url &pageId=document so that it can be used to support special handling on the Maestro form. We are also sending a message using a postMessage API with the following schema:

{
pageId: 'document'
}

Example

The following example showcase how to configure the attachments card.

src/configs/custom/process.ts

import { ConfigCurrentSpace } from '@transact-open-ux/workspaces/dist/types';
export const processConfig = ({ date }: any): ConfigCurrentSpace => ({
...
attachments: {
duplicates: true,
filter: {
action: 'exclude',
regex: '.zip',
},
uploadWithoutClaim: true,
},
...
});
export default processConfig;

Attributes

To review the possible attributes please check the API Reference.