McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 448

↗ View in doc context
page
448
source
finesse/v12.5/developer-guide/developer-guide.md
chunk_id
finesse::v12.5::developer-guide::developer-guide::432

showPopover(bannerData, timerData, actionData, actionHandler) Shows a popover with the specified data. The user interaction or timeout of the popover is notified to the gadget through the registered actionHandler. When there is a new popover, the older popover is minimized except the popover related to voice calls. Note Parameters Required Description Type Name Yes The data displayed on the popover. For example, Customer Information such as name and phone number. For more information on the payload and description, see bannerData, on page 429. Object bannerData Yes The time left for the popover to be dismissed. The duration is displayed in seconds. For example, 00:38. For more information on the payload and description, see timerData, on page 430. Object timerData Yes Describes the set of actions to be taken on the displayed popover. For example, Answer and Decline. For more information on the payload and description, see actionData, on page 427. Object actionData Yes Handler function that gets invoked for the events that are associated with the user interactions. Function actionHandler Yes Unique identifier of the popover to be generated. This Id is returned from the showPopover call. String -->popoverId Yes Unique identifier of the source which generates the event. For example, 'btn_[id]_click', 'dismissed', or 'timeout'. String -->source Throws {Error} If the popoverData is not as per defined format. Returns {String} The popover Id and can be used for subsequent interaction with the service. updatePopover(popoverId, bannerData, timerData, actionData, actionHandler) Updates an active popover's displayed content. Parameters Required Description Type Name Yes Unique identifier of the popover to be generated. This Id is returned from the showPopover call. String popoverId Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 432 Cisco Finesse JavaScript APIs Popover Service

Image 1 from page 448