Configures attachments in popup elements.

Referenced by: popupElement

Properties

PropertyDetails
attachmentKeywords[]An array of strings used to identify attachment(s). When attachments are displayed, this property is used to query attachments using an exact match on the keywords provided.
attachmentTypes[]An array of strings representing MIME types. When attachments are displayed, this property is used to query attachments based on MIME type. Valid values: application, audio, image, model, text, and video.
descriptionAn optional string value describing the element in detail. This property does not apply when the type is text or expression.
displayTypeThis property applies to elements of type attachments. A string value indicating how to display the attachment. If carousel is specified, attachments show in a carousel. If list is specified, attachments show as links. If preview is specified, attachments expand to the width of the pop-up. The default auto setting allows applications to choose the most suitable default experience.
Valid values:
  • auto
  • carousel
  • list
  • preview
orderByFields[]Array of orderByField objects indicating the display order for attachments, and whether they should be sorted in ascending 'asc' or descending 'desc' order.
titleAn optional string value indicating what the element represents. This property does not apply when the type is text or expression.
type
Valid value of this property attachments

popupElement attachments Example

{
"type": "attachments",
"displayType": "list",
"orderByFields": [
{
"field": "id",
"order": "desc"
}
]
}