Element
Overview
A Member “element” is a specific item from an attribute (or column) that was selected in the query. Use the rendered element selections to understand and draw the visual.
- From version: 2020.20
Properties
Methods
Properties
caption
caption: string
Member’s plain text caption.
isSelected
isSelected: boolean
Returns true if the current element is selected in the UI.
level
level: number
Returns the member’s level index in a multi-level hierarchy. Especially useful when the visual takes the hierarchical nature of the results into account.
parentChip
parentChip: Chip
The “chip” object that member element belongs too.
uniqueName
uniqueName: string
Member’s Unique name.
Methods
hideTooltip
hideTooltip ( event : MouseEvent<Element, MouseEvent>): void
Hide the tooltip for the current element. Typically used on when the mouse leaves element’s visual representation.
Parameters
-
event:MouseEvent<Element, MouseEvent>
DOM mouse event object for the tooltip to generate from.
Returns void
select
select (): void
Selects the current element. May be used to trigger a user action on the custom visual.
Returns void
showContextMenu
showContextMenu ( event : MouseEvent<Element, MouseEvent>): void
Show the ’elements’ context menu for the selected elements. Provides a method to trigger the member element context menu from Pyramid. Showing the context menu gives the user more options and interactions between the visual and the data.
Parameters
-
event:MouseEvent<Element, MouseEvent>
DOM mouse event object for the context menu to generate from.
Returns void
showTooltip
showTooltip ( event : MouseEvent<Element, MouseEvent>): void
Displays the tooltip associated with the current element. Typically used on when the mouse hovers over an element’s visual representation.Tooltips show other useful information about an element.
Parameters
-
event:MouseEvent<Element, MouseEvent>
DOM mouse event object for the tooltip to generate from.