Skip to main content
Matrix42 Self-Service Help Center

Attachments Control

Overview

If it is needed to attach files to an object or show already attached files You may use Attachments control.

Appearance

clipboard_e05d24a38aa189e155997130cfeb82f31.png

To add an attachment one may click on a "DROP HERE" tile or drag and drop files to this tile.

 

To delete an attachment move mouse cursor upon it and click Delete button.

To download an attachment move mouse cursor upon it and click Download button.

clipboard_ed2764b6500277b4080c011487529beb9.png

 

It is possible to sort files by File Name, Size or Date Uploaded.

It is possible to filter attached files by file name. Filter is applied automatically as soon as user types five or move characters to Filter field.

Configuration

To add an attachment control just drag-drop it to layout.

clipboard_e2b081108bdea40a49445ce9eb4c63d84.png

 

Parameters

Model

 
Entity
Type: String
Type name of an object this control is related to.
 
Lazy Mode
Type: Boolean
Show attachments control only after user clicks on a link button "Click here to show attachments". This option could optimize widget load performance.
 
ObjectId
Type: GUID
Id of an object this control is related to. By default Id is taken from a context object.
 
ObjectIds
Type: Array of GUID
Ids of an objects whose attachments to display. Should be used in read-only mode. E.g. to display attachments in some wizard's summary.
 
Hide Files
Type: Array of GUID
An array of file Ids to be hidden in attachment control.
 
Value
Type: String
Filter attachments by specified attachments folder id.
 
Skip Initial Load
Type: Boolean
Skip attachments loading on control initialization.
 

Common

 
 
Help
Type: String
A content of a context help to be displayed under a help icon.
 
Read Only
Type: Boolean
Is a control read only.
 
Upload multiple files
Type: Boolean
Allow user to upload several files at a time. Otherwise only one file is allowed to be uploaded.
 
Name
Type: String
Control's technical name.

Appearance

 
 
Files Exist
Type: Boolean
Output parameter, returns true if files exist.
 
Visibility
Type: Boolean
Defines if the control is visible.
 
Margin
Type: String
Set control's margin offset in CSS format.
 
Padding
Type: String
Set control's padding offset in CSS format.
 
Flex option
Type: Option
Flex or Fixed - defines flex behavior on a control.

Device Visibility

 
Desktop
Type: Boolean
Defines if control in visible on desktop devices.
 
Tablet
Type: Boolean
Defines if control in visible on tablet devices.
 
Mobile
Type: Boolean
Defines if control in visible on mobile devices.
  • Was this article helpful?