McDewey

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

Page 437

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

Required Description Type Name Yes The data to be published for the specified topic on the OpenAjax hub. Object data reloadMyGadget() Reloads the current gadget. This method is useful when the gadget encounters an error. Example var containerServices = finesse.containerservices.ContainerServices.init(); containerServices.reloadMyGadget(); reloadMyGadgetFromUrl(url) Updates the URL for this gadget and reloads the gadget. This method allows the gadget to be reloaded from a different URL which can be useful for third-party gadgets implementing a failover mechanism. Example var containerServices = finesse.containerservices.ContainerServices.init(); containerServices.reloadMyGadgetFromUrl(url); Parameters Required Description Type Name Yes The URL that the gadget should reload from. String url removeHandler(topic, callback) Removes previously added handler for the specified Container Services topic. Example finesse.containerservices.ContainerServices.removeHandler(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 No An asynchronous callback function to be removed for the specified Container Services topic. Function callback showDialog(options) Shows the user interface modal dialog with the specified parameters. The parameters are: • Title of the modal dialog • Message inside the modal dialog Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 421 Cisco Finesse JavaScript APIs Container Services