Twidget includes a suite of session storage commands that enable no-code interaction with the browser’s sessionStorage
API. These tools allow temporary storage of key-value data for the current page session.
Session storage commands allow developers to manage transient data tied to a single page session. Unlike local storage, this data is cleared when the tab or browser is closed, making it suitable for non-persistent state handling, such as temporary user input or UI state.
Session Scope: Data is retained only for the duration of the browser tab session.
String-Based Access: All keys are strings, and values are stored and retrieved as text.
Temporary State: Ideal for managing ephemeral state that doesn’t need to persist between sessions.
Set Item: Stores a value under a specified key in session storage. Accepts any data type.
Get Item: Retrieves a stored value by key and returns it as text.
Remove Item: Deletes a specific key-value pair from session storage.
Clear: Clears all data associated with the current session.
These commands enable quick and flexible session-based data handling within Twidget, without requiring any manual JavaScript code.
Local Storage
Twidget provides a set of local storage commands that enable interaction with the browser’s `localStorage` API through a no-code interface. These commands are useful for storing, retrieving, and managing key-value data persistently within the current domain context. Purpose. These commands abstract ...
Return
The `return` command in Twidget is a special command used to halt the current command workflow and immediately return a specified result. This command overrides any subsequent processes and outputs the return result regardless of the rest of the workflow logic. This command is particularly useful fo...
Error Handling
When building applications with Twidget, you may encounter situations where you need to handle errors gracefully to ensure your application runs smoothly. Twidget provides two powerful commands for error handling: `try-catch` and `throw-error`. This documentation will guide you on how to use these c...
Send Message
Send SMS Command. With Twidget, you can send SMS messages to phones using the `Send SMS` command. This functionality varies depending on the provider. Currently, we support Twilio as the SMS provider. To use Twilio for SMS integrations, you will need: - A Twilio account ID - Twilio Auth Token - A Tw...
Date
Twidget offers a variety of commands to manipulate date objects. Below are the available commands along with their respective descriptions, inputs, and outputs. Current Date. Description: Returns the current date and time. Output: - Type: DATE Add Time. Description: Returns the date plus a specified...