McDewey

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

Page 449

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

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 Throws {Error} If the popoverData is not as per defined format. Events Gadget View Changed Event Class finesse.containerservices.GadgetViewChangedEvent Contains information about the changed events of the gadget view. There are two types of views supported for a gadget, that is default and canvas. The default view is the default size of the gadget. Canvas view is a maximized view of the gadget. You can set a button to toggle between default view and canvas view. Add <Content type="html" view="default,canvas"> in the gadget XML. This adds the toggle button in the top right corner of the gadget. For more information, see Gadget Height Management, on page 404. The method to subscribe to the changed gadget event is finesse.containerservices.ContainerServices.containerServices.addHandler() with a topic of finesse.containerservices.ContainerServices.Topics.GADGET_VIEW_CHANGED_EVENT. Example var containerServices = finesse.containerservices.ContainerServices.init(); finesse.containerservices.ContainerServices.addHandler(finesse.containerservices. ContainerServices.Topics.GADGET_VIEW_CHANGED_EVENT, function(gadgetViewChangedEvent) { var gadgetId = finesse.containerservices.ContainerServices.getMyGadgetId(), tabId = finesse.containerservices.ContainerServices.getMyTabId(); if (gadgetViewChangedEvent.getGadgetId() === gadgetId && gadgetViewChangedEvent.getTabId() === tabId) { if (gadgetViewChangedEvent.getView() === 'default') { gadgets.window.adjustHeight(defaultHeight); $('#content').html('DEFAULT VIEW'); view = 'default'; Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 433 Cisco Finesse JavaScript APIs Events