User Interface & Code
User Interface Embedded in Code
Last updated
User Interface Embedded in Code
Last updated
Each node features two distinct views: Code and UI. Values from the user interface are passed on to the Python code as input parameters
Code Parameters:
Python code received the following input values:
'data' - this is the data passed on from the upstream nodes. Structure: data['node_id']['handle_title']...etc
'params' - this is the data passed from the user interface.
'env' - provides the session_id (history id).
Draft & live modes:
When new data is entered in the UI view, it's stored as draft value ( * on top indicates that there are unsaved changes in the UI view). Saved (live) values are used when running the code.
To test a node, enter a test value and click 'save & run' to execute the node and get a response. After successful testing, enter the production value and click 'save' to save without running the node.
Passing values between nodes is currently supported only in the code view. The UI view is limited to entering static values.
Remember to manually deploy changes: Updates to nodes and triggers are not automatically deployed. Click 'deploy' to apply changes.
Clicking on a UI item in the code view enables you to modify its properties, which dictate how the UI components are presented in the UI view.
UI components can handle JSON objects of any value, including deeply nested ones.