/mcpexpandMyGadget() Expands the gadget which is collapsed to display its contents. Example finesse.containerservices.ContainerServices.expandMyGadget(); Ensure that the gadget height is set using gadgets.window.adjustHeight before making a call to finesse.containerservices.ContainerServices.expandMyGadget. Note getMyGadgetId() Retrieves the Id of the gadget. Example finesse.containerservices.ContainerServices.getMyGadgetId(); Returns {Number} Id of the gadget getMyGadgetView() Returns the current view details of the gadget. To identify if the gadget is in canvas (maximized) or default (restored) state, you must use this at the gadget inital load time. In all the other scenarios, gadget can use finesse.containerservices.ContainerServices.Topics.GADGET_VIEW_CHANGED_EVENT to get to the gadget view change events. Example containerServices = finesse.containerservices.ContainerServices.init(); var viewConfig = containerServices.getMyGadgetView(); var newgadgetHeight = viewConfig.maxAvailableHeight; Returns {Object} The gadget details that include the following: • gadgetId—The Finesse gadget ID • tabId—The tab ID of the container or the gadget • maxAvailableHeight—Maximum available height that can be used by the gadget iframe • view—'canvas' or 'default', where canvas is maximized and default is restored state of a gadget getMyTabId() Retrieves the tabId of the container or gadget. Example finesse.containerservices.ContainerServices.getMyTabId(); Returns {String} The tabId of the container or gadget. Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 419 Cisco Finesse JavaScript APIs Container Services
