Kuika's Switch element allows users to activate/deactivate a feature or setting with a single tap. Its simple, intuitive, and visually clear design enhances user interaction. It is typically preferred for connection, notification, security, or visibility settings.
Supported in both web and mobile applications.
Use Cases
Notification or email subscription management
In-app dark/light theme switching
Location, Bluetooth, or device connection control
Stay logged in or auto-login settings
User access or feature authorization
Use Case – Enabling Device Connection
In a smart home application, the user manages a pet feeder (Pet Feeder). On this screen, the Switch element indicates whether the device connection is active and is controlled by the user.
In the scenario:
The user sees a message showing the “Stay Connected” title and the connection status.
If the Switch is in the open (blue) position, the device connection is active.
When the user turns off the Switch, the connection is disabled.
The system saves this value to the database and displays the “Disconnected” message on the interface.
Connecting the Data Source
Go to the Datasources module.
Click the “+” icon next to the Tables heading.
Name the table DeviceConnections.
Create the following table.
Then, create a new action in the Actions > SQL Actions tab and name it UpdateConnectionStatus.