IPopupElement

Interface

Popup elements allow users to author popups, using multiple elements such as tabular views, string description, media (charts and images), and attachments of the attributes and control the order in which they appear. Specifically, popupElements do the following:

  1. provide the ability to explicitly add a field/ value table in addition to a description,
  2. allow adding multiple description elements, and
  3. allow a user to author and consume elements of a popup in the order of their choosing.

Properties

PropertyTypeNotes
"preview" | "list"

This property applies to elements of type attachments. A string value indicating how to display the attachment. Possible values are, preview, and list. If list is specified, attachments show as links.

This property applies to elements of type fields. It is an array of popupInfo.fieldInfo objects representing a field/value pair displayed as a table within the popupElement. If the fieldInfos property is not provided, the popupElement will display whatever is specified directly in the popupInfo.fieldInfos property.

This property applies to elements of type media. An array of popupInfo.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.mediaInfo property.

string

This property applies to elements of type text. This is string value indicating the text to be displayed within the popupElement. If no text property is provided, the popupElement will display whatever is specified in the popupInfo.description property.

"text" | "fields" | "media" | "attachments"

String value indicating which elements to use.

displayType

optional
Interface Property
displayType: "preview" | "list"

This property applies to elements of type attachments. A string value indicating how to display the attachment. Possible values are, preview, and list. If list is specified, attachments show as links.

fieldInfos

optional
Interface Property
fieldInfos: IFieldInfo[]

This property applies to elements of type fields. It is an array of popupInfo.fieldInfo objects representing a field/value pair displayed as a table within the popupElement. If the fieldInfos property is not provided, the popupElement will display whatever is specified directly in the popupInfo.fieldInfos property.

mediaInfos

optional
Interface Property
mediaInfos: IMediaInfo[]

This property applies to elements of type media. An array of popupInfo.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.mediaInfo property.

text

optional
Interface Property
text: string

This property applies to elements of type text. This is string value indicating the text to be displayed within the popupElement. If no text property is provided, the popupElement will display whatever is specified in the popupInfo.description property.

type

optional
Interface Property
type: "text" | "fields" | "media" | "attachments"

String value indicating which elements to use.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.