The DelayCode custom widget is a custom timing delay component designed for integration with SAP Analytics Cloud. It provides a simple API for introducing delays, which can be useful in scenarios such as waiting for user interactions, pacing animations, or managing asynchronous operations.
To get started with DelayCode, simply download the DelayCode.json file from the link below. Then, just follow the instructions provided to install DelayCode in your SAP Analytics Cloud environment.
GitHub Repository: https://github.com/SAP-Custom-Widget/DelayCode
Direct Download: https://sap-custom-widget.rohitchouhan.com/?dl=DelayCode
The DelayCode widget exposes the following method:
Description: Introduces a delay for the specified number of milliseconds. This method can return a boolean value indicating whether the operation was successful.
Parameters:
Return Type: boolean
Usage Example:
// Logs a greeting message to the console on initialization
console.log("Hello There");
// Output: Hello There
// Introduces a delay of 10,000 milliseconds (10 seconds)
DelayCode_1.delay(10000);
// Logs a farewell message after the delay completes
console.log("Bye, See you");
// Output: Bye, See you (after 10 seconds)This widget exposes a single event named onTimeOut, which serves as a determinative callback that is triggered upon the completion of the configured delay interval.
The DelayCode widget is a lightweight tool that integrates smoothly into the SAP Analytics Cloud environment, allowing developers to implement timing delays efficiently. Future versions may expand functionality with additional properties and event handling capabilities.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 29 | |
| 21 | |
| 19 | |
| 16 | |
| 14 | |
| 13 | |
| 13 | |
| 13 | |
| 11 | |
| 10 |