π Home
CUSTOMIZE A TEMPLATE β±
LEARN VOLTAPP
CREATE YOUR 1rst APP
GO FURTHER
Webhooks integration (Make, Zapierβ¦): ex Notion
REFERENCE
HELP
COMMUNITY
π Our discord
π Marketpad
The Switch node allows you to associate events with its two positions, while customizing the visual aspects.
In the inspector on the right side of the screen you can first set the value of the variable for your switch by choosing "true" or "false".
To assign a variable to the switch button you have to switch to script mode by clicking on the three blocks at the top left of the inspector.
Once in the script mode, add the event block "change". Then drag its "value" parameter and select "promote to value" at the bottom of the window that appears on the screen.
To rename your variable, go to the "variables" tab of your inspector, click on the variable in place. You can then change its name, value etc.
To finish the configuration of your switch, go back to the "design" mode by clicking on the 4 squares at the top left of the inspector (1). Once in the "config" menu of the inspector (2), click on the link icon of the Toggle value (3), then assign the variable you just created to it (4).
You can then determine the color of the bar when the switch is activated in "color".
Then the color of the bar when the switch is off in "off".
Finally you can also determine the color of the button in "button".
The style manages the general visual properties applied to this node.
Control the background (image, color, or gradient) of the node.
Control the opacity of the node.
Controls the radius of the rounded outer corners of the node. You can set the radius for all corners (top left, top right, bottom left, bottom right) or for each corner individually.
Controls the shape, color and thickness of the node's border.
Allows you to add one or more shadows to a node. Each shadow is defined by :
Applies blur to the background of the node only, to create an iOS-style glass effect. The larger the value, the greater the blur.
The layout allows you to place and position your node in relation to its siblings (those of the same parent node).
Controls the width of the node.