Application examples on node properties¶
Some examples have been described below to explain the dashboard node properties.
Message input passes to output¶
Let us consider a simple example considering the switch node.
To pass the message input to the output using switch node, follow these steps:
-
From the node palette, drag and drop the following nodes to the working area.
- Inject node
- Switch node
- Debug node
-
Connect the nodes in a flow as shown below:
-
Double click on the inject node to edit the properties. For more information, refer to Editing nodes.
-
Double click on the switch node to edit the properties.
- In the "Group" section, you can select any one of the following options from the dropdown menu. To edit the "Group" section, click .
- Select the image "Size".
- Enter the "Label" as "Switch".
- In the "Icon" section, you can select any one of the following options from the dropdown menu.
- Check the box of "If msg arrives on input, pass through to output".
- In the "On Payload" and "Off Payload" sections, you can select any one of the following options from the dropdown menu.
- Click "Done".
-
Save and execute the flow.
The "If msg arrives on input, pass through to output:" check box is selected: The output will be displayed in the debug tab depending on the toggling of the switch in the dashboard window browser.
The "If msg arrives on input, pass through to output:" check box is not selected: The output will not be displayed in the debug tab when you toggle the switch in the dashboard window browser.
Flows on usage of a single and multiple browsers¶
A function is defined which generates today's date. To differentiate the single and multiple browser concept, follow these steps:
-
From the node palette, drag and drop the following nodes to the working area.
- Button node
- Function node
- Text node
-
Connect the nodes in a flow as shown below:
-
Double click on the text node to edit the properties. Check box of the last node (text node) from the given flow:
-
Clear the "only one browser" check box of the last node (text node) from the given flow:
-
Open the dashboard from the menu icon.
- Open two dashboard browsers to compare the flows.
The "Only one browser" check box is selected: When you click the button (click to display information) node in the first browser, you get the output only for the clicked respective browser. You have to click the button node of the other browser separately to get its output.
Note
The date and time display has seconds difference in time because the buttons in both the browsers were clicked individually.
The "Only one browser" check box is not selected: When you click the button (click to display information) node in any browser, output of all the opened browsers will be displayed simultaneously.
Here, the date and time display has no time difference because only one button click in any of the browsers displayed the output at the same time.
Configure size¶
Considering the size of dashboard nodes in "Example 2", by default the button node size is set to "auto". To configure the button node to different size, open properties and select the size to different number, for example "3x2" as shown below:
The size of the button will be changed and the button will be displayed with the size set in the properties.