/mcpactivateTab(tabId) Activates a particular tab in the container. Example finesse.containerservices.ContainerServices.activateTab(tabId); Parameters Required Description Type Name Yes The Id (not the label text) of the tab is activated. If the Id is invalid, no action occurs. String tabId addHandler(topic, callback) Adds a handler for the specific Container Services topic. For more information on topics, see Container Services Topics, on page 423. Example finesse.containerservices.ContainerServices.addHandler(finesse.containerservices.ContainerServices.Topics. TIMER_TICK_EVENT,callback); Parameters Required Description Type Name Yes Hub topic that the gadget wants to listen to. For more information on topics, see Container Services Topics, on page 423. String topic Yes An asynchronous callback function that is invoked when the hub topic is notified. Function callback collapseMyGadget() Collapses the gadget by hiding its contents for gadgets that are collapsible. In the collapsed state, only the gadget header is displayed. Example finesse.containerservices.ContainerServices.collapseMyGadget(); To make the gadget collapsible, add <Optional feature="collapsible" /> in to the ModulePrefs inside the gadget XML. Example: Enable Collapse Feature <ModulePrefs title="Sample Gadget" description="Sample Gadget"> <Optional feature="collapsible" /> </ModulePrefs> Ensure that the gadget height is set using gadgets.window.adjustHeight before making a call to finesse.containerservices.ContainerServices.collapseMyGadget. Note Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 418 Cisco Finesse JavaScript APIs Container Services
