Skip to content

Latest commit

 

History

History
 
 
description Framework functions

Global Functions

Global functions in Appsmith enable you to trigger various actions for widget events and within JS Objects. These functions allow you to navigate to other pages, display alert messages, open or close modals, and manage data in local storage, among other capabilities.

Browse this section to learn about the different actions you can trigger on Appsmith.

{/* clearInterval Function Card */}
clearInterval

Clears a previously set interval, stopping the specified repeated action.

{/* clearStore Function Card */}

clearStore

Clears all stored values, effectively resetting the local storage state.

{/* closeModal Function Card */}

closeModal

Closes an open Modal widget.

{/* copyToClipboard Function Card */}

copyToClipboard

Copies the given text to the clipboard, making it available for pasting.

{/* download Function Card */}

download

Downloads the file data provided, with an optional file name and type.

{/* navigateTo Function Card */}

navigateTo

Navigates to a different page or URL, either within the Appsmith app or externally.

{/* postWindowMessage Function Card */}

postWindowMessage

Posts a message to another window, facilitating communication between multiple windows.

{/* removeValue Function Card */}

removeValue

Removes a stored value, clearing it from local storage or session storage.

{/* resetWidget Function Card */}

resetWidget

Resets a widget to its default state, clearing any set values or changes.

{/* setInterval Function Card */}

setInterval

Sets a recurring interval, executing a function repeatedly at the specified time intervals.

{/* showAlert Function Card */}

showAlert

Shows an alert message, displaying a brief notification to the user.

{/* showModal Function Card */}

showModal

Displays a modal dialog with content, allowing users to interact with additional information.

{/* storeValue Function Card */}

storeValue

Stores a value locally, allowing you to use it in other parts of your app or across sessions.

{/* unlistenWindowMessage Function Card */}

unlistenWindowMessage

Removes a message listener from another window, stopping the reception of posted messages.

{/* windowMessageListener Function Card */}

windowMessageListener

Listens for messages posted from another window, allowing communication across windows.