Configures media in popup elements.

Referenced by: popupElement

Properties

PropertyDetails
attributesA dictionary of key value pairs representing attributes to be used instead of fields and their values. This property is only used when an element of type media is being returned inside an element of type expression and should be returned as part of the arcade expression itself. This property allows passing arcade derived attribute values into mediaInfos such as charts. More details can be found here.
descriptionAn optional string value describing the element in detail.
mediaInfos[]An array of mediaInfo objects representing an image or chart for display. If no mediaInfos property is provided, the popupElement will display whatever is specified in the popupInfo.mediaInfos property.
titleAn optional string value indicating what the element represents.
type
Valid value of this property media

Additional information

Each popupElement has a type property. This string value indicates the type of popupElement used.

popupElement media image Example

{
"mediaInfos": [
{
"type": "image",
"title": "<div><p style='font-weight:bold;'><span>Image</span></p></div>",
"caption": "<div><p><span>California flag</span></p><p><span /></p></div>",
"value": {
"sourceURL": "http://www.50states.com/flag/image/nunst0006.gif"
}
}
],
"type": "media"
}

popupElement media chart Example

{
"mediaInfos": [
{
"type": "columnchart",
"title": "<div><p style='font-weight:bold;'><span>Chart</span></p></div>",
"caption": "<div><p><span style=\"color:#DF73FF;\">This shows Rotation and size.</span></p></div>",
"value": {
"fields": [
"rotation",
"size"
]
}
}
],
"type": "media"
}