Actions reference

Browse the built-in actions in toddle. You can use the built-in actions as part of your web app or create custom actions that fit your desired use case.

Copy to clipboard

undefined

Input

  • ValueString

Delete from Local Storage

Deletes the value from Local Storage (if found) based on the provided key

Input

  • Key

    The key to use when deleting in Local Storage

Delete from Session Storage

Deletes the value from Session Storage (if found) based on the provided key

Input

  • Key

    The key to use when deleting in Session Storage

Focus

Move focus to a DOM element

Input

  • ElementElement

    The DOM element that should receive focus

Go to URL

Navigate to a different URL

Input

  • URL

Interval

Run an action every "delay" milliseconds

Input

  • Interval in millisecondsNumber

Log to console

Log a message to the browser console

Input

  • Label

  • Data

Save to Local Storage

Saves the provided key/value to Local Storage by JSON encoding the value

Input

  • Key

    The key to be used in Local Storage

  • ValueAny

    The value that should be saved in Local Storage. This can be anything that is serializable (string, number, boolean, array or object)

Save to Session Storage

Saves the provided key/value to Session Storage by JSON encoding the value

Input

  • Key

    The key to be used in Session Storage

  • ValueAny

    The value that should be saved in Session Storage. This can be anything that is serializable (string, number, boolean, array or object)

Set session cookies

Save authentication tokens as session cookies

Input

  • Access token

    Access tokens are the most common way to authenticate with a server

  • Expires inNumber

    (Optional) Seconds till the token expires. Defaults to 3600 (1 hour). This should be left blank for JWTs

Share

Share data with title, text, and/or url using the Navigator.share API

Input

  • URL to shareString

  • Title to shareString

  • Text to shareString

Sleep

Run an action after a delay

Input

  • Delay in millisecondsNumber

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.