diff --git a/_includes/docs-content.html b/_includes/docs-content.html index bf8ab7b6..37df893f 100644 --- a/_includes/docs-content.html +++ b/_includes/docs-content.html @@ -13,6 +13,9 @@
+ Editor window
+
- Editor window
-
- Editor components
-
- Palette toggle
-| Reference | |
|---|---|
| Key shortcut | Ctrl/⌘-p |
| Menu option | View -> Show Palette |
| Action | core:toggle-palette |
| Action | core:show-palette-tab |
| Key shortcut | Ctrl/⌘-g p |
Ctrl/⌘-g d
Debug filter options
+ Debug paused
+| Reference | |
|---|---|
| Action | core:toggle-debug-messages |
| Reference | |
|---|---|
| Reference | |
|---|---|
| Reference | |
|---|---|
| Action | core:show-explorer-tab |
| Key shortcut | Ctrl/⌘-g e |
Help Sidebar
-*Since Node-RED 1.1.0* - -In previous versions of Node-RED, the help text for the currently selected node -was displayed in the Information sidebar. - -Introduced in Node-RED 1.1.0, the Help sidebar provides access to the help content -for all nodes in the editor - not just the current selection. +The Help sidebar provides access to the help content for all nodes in the editor. The top section provides a full table of contents, that can be toggled using the - button. + button.| Reference | |
|---|---|
| Key shortcut | Ctrl/⌘-Alt-Space |
| Menu option | View -> Show left sidebar |
| Action | core:toggle-left-sidebar |
| Reference | |
|---|---|
| Key shortcut | Ctrl/⌘-Space |
| Menu option | View -> Show sidebar |
| Action | core:toggle-sidebar |
| Menu option | View -> Show right sidebar |
| Action | core:toggle-right-sidebar |
Information Sidebar
- Outline entry options
-| Reference | |
|---|---|
| Action | core:show-info-tab |
| Reference | |
|---|---|
| Key shortcut | Ctrl/⌘-Shift-p |
| Menu option | View -> Action list |
| Action | core:show-action-list |
Flow properties editor
-
+
Information Sidebar
| Reference | |
|---|---|
| Reference | |
|---|---|
| Reference | |
|---|---|
| Key shortcut | Shift-? |
| Menu option | View -> Keyboard shortcuts |
| Action | core:show-keyboard-settings |
+
Node elements
+ Node error tooltip
+
+ Node documentation
+| Reference | |
|---|---|
| Key shortcut | Ctrl/⌘-f |
+ Search toolbar
+
- Selecting multiple wires
-| Reference | |
|---|---|
| Action | core:detach-selected-nodes |
| Key shortcut | *Not assigned |
| Key shortcut | Not assigned |
+
+The `link out` node is configured with the option `return to calling link node` option.
+
+#### Using `node.linkcall`
+
+A Function node can call a link node using the `node.linkcall` function:
+
+{% highlight javascript %}
+// Set a query for the sqlite node to use
+msg.topic = 'select * from orders';
+// Call the `database-query` link node and await a response
+const result = await node.linkcall('database-query', msg);
+
+// result.payload contains the result of the database query
+
+{% endhighlight %}
+
+#### `node.linkcall(target, message, options)`
+
+ - `target` is a string identifier for the `link in` node that should be called. It is either the `id` or `name` of the node.
+ - `msg` is the message object to pass the flow.
+ - `options` is an optional object with the following properties:
+ - `timeout` : set a timeout for the call, in milliseconds. Default: `5000` (5 seconds)
+ - `clone` : whether to clone the message before sending. Default: `true`.
+
+
+
+
+
***
### API Reference
@@ -477,9 +510,9 @@ NOTE: The timeout functionality only applies to synchronous code.
The following objects are available within the Function node.
#### `node`
- * `node.id` : the id of the Function node - *added in 0.19*
- * `node.name` : the name of the Function node - *added in 0.19*
- * `node.outputCount` : number of outputs set for Function node - *added in 1.3*
+ * `node.id` : the id of the Function node
+ * `node.name` : the name of the Function node
+ * `node.outputCount` : number of outputs set for Function node
* `node.log(..)` : [log a message](#logging-events)
* `node.warn(..)` : [log a warning message](#logging-events)
* `node.error(..)` : [log an error message](#logging-events)
@@ -489,6 +522,7 @@ The following objects are available within the Function node.
* `node.status(..)` : [update the node status](#adding-status)
* `node.send(..)` : [send a message](#sending-messages-asynchronously)
* `node.done(..)` : [finish with a message](#finishing-with-a-message)
+ * `node.linkcall(..)` : [call a `link in` node and await a response](#calling-link-nodes) - *added in 5.0*
#### `context`
* `context.get(..)` : get a node-scoped context property