Refresh Button Widget

Adds a button widget with configurable text which can be used to refresh the composite view of the component. The button widget emits reactivity events that trigger the re-execution of downstream nodes in a component when clicked. It allows users to create interactive Data Apps and visualizations.

To use the node, connect the variable output port to the nodes which should be re-executed. The downstream nodes of those connected nodes will also be re-executed when the widget is clicked.

Options

Label
A descriptive label that will be shown above the button.
Description
Native browser tooltip text to be shown for the button.
Text
The text of the button.
Variable Name
Variable identifier. Two variables are created with the suffix
  • -counter: Number of refreshes the button has triggered
  • -timestamp: An ISO formatted timestamp from the last refresh triggered by the button

Input Ports

This node has no input ports

Output Ports

Icon
Variable output port to connect to nodes which should be re-executed when the widget is clicked. Downstream nodes of a node connected to this flow variable output port will also be re-executed, so it's only necessary to connect to the root node in each workflow branch for which re-execution is desired. The flow variable value is trivial and does not contain any information.

Popular Successors

Views

Interactive View: Refresh Button Widget
Displays a button with text and an optional label which emits reactivity events to re-execute downstream nodes.

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.