McDewey

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

Page 409

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

Figure 11: Loading Indicator - Timeout You can change any of the strings displayed by the loading indicator by configuring the gadget to call the following JavaScript methods: • gadgets.loadingindicator.updateLoadingMessage(text) • gadgets.loadingindicator.updateTimeoutMessage(text) • gadgets.loadingindicator.updateRetryButtonText(text) APIs Available to Gadget JavaScript The following table lists the available APIs and methods. Description Parameters Name Adjusts the height of the gadget. opt_height (integer)—Preferred height in pixels. This parameter is optional. If the opt_height is not specified, the API attempts to fit the gadget to its content. <static> gadgets.window.adjustHeight(opt_height) Sets the title of the gadget. title (string)—Preferred title of the gadget. <static> gadgets.window.setTitle(title) Fetches content from the provided URL and feeds that content into the callback function. The makeRequest call to the Shindig server is a POST request. Note url (string)—Address from which content is fetched. callback (function)—Run after content from the url is fetched. opt_params (Map<String, String>)—Additional optional parameters to pass to the request. <static> gadgets.io.makeRequest (url, callback, opt_params) Sets the view type of the gadget. If the parameter value equals "canvas", the gadget is requesting to be maximized within the tab on which it resides. If any other value is provided, the gadget is requesting to be restored to its default view. view (string)—The view type to which the gadget is requesting to change. <static> gadgets.views.requestNavigateTo (view) Dismisses the loading indicator so that the message is no longer visible. None <static> gadgets.loadingindicator.dismiss() Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 393 Finesse Desktop Gadget Development APIs Available to Gadget JavaScript

Image 1 from page 409