AppMaster.io
Home
Studio
Jobs
Suggest Feature
Search…
English
What is AppMaster.io?
Getting Started
App Architecture
Quickstart
Best Practices
FAQ
Projects
Creating a Project
Project sharing
MODULES (INTEGRATIONS)
Modules
Setup
Modules List
Data Design
What are data models
Data Models Designer
Data types
Relation types
Auto-generation of data models
Business Logic
Business Processes Editor
Best Practices for BP Separation
Blocks List
Global Variables
External API Requests
FAQ
Endpoints (API)
Endpoints Configuration
Middleware
Access & Permissions
WEB APPS
Web Applications Designer
Working with Components
Signup and Login Forms
Workflow in web applications
Components list
Container
Button
Dropdown
Table
View
Tabs
Switch
Label
Image
Video
Chart
Form
Input (string)
Input (text)
Input (integer)
Input (float)
Input (email)
Input (password)
Input (phone)
RichText Editor
Time Span
Date Picker
Time picker
DateTime Picker
Select
Select (enum)
Relselect
MOBILE APPS
Mobile Applications Designer
Creating a Mobile App
Mobile Designer Interface
Working with Screens
Working with Widgets
Publishing a Mobile App
DEPLOYMENT
Deployments Configuration
AppMaster.io Cloud Services
Data Export
Logs
How-To
Import CSV/Excel File
Buttons Setup
User Interface Layout
Powered By
GitBook
Switch
Look&Feel Settings:
Label
(not mantory) to be used to show the component's label.
Name
(mantory) - this name will help you find this component in BP.
Size
(mantory) - standard switch sizes.
Default checked
(mantory) - turn on by default.
Disabled
(mantory) - availability of the switch in the application. Is turned on by default.
Visible
(mandatory) - makes the component visible if turned on. Enabled by default.
Workflow triggers:
onChange
– fires when a change occurs in the field;
onBlur
– fires when the field is deselected;
onFocus
– fires when a field is selected (clicked on);
onCreate
– fires when the element is created on the page;
onShow
– fires when the component changes its state to visible (displayed on the page);
onHide
– fires when the component changes its state to hidden (stops being displayed);
onDestroy
– fires when the component is destroyed;
onClick
- fires when the component is clicked.
Component Actions:
Switch Get Properties
Gets switch properties
Input
parameters:
Component Id
[
string
]
-
switch component's identifier.
Output
parameters:
Label
[
string
] - component's label;
Placeholder
[
string
] - component's placeholder;
Disable
[
boolean
] - disables component if
true
;
Visible
[
boolean
] - component visibility state
.
Tooltip
[
string
] - tooltip string;
Required Mark
[
boolean
] - shows required mark if
true
;
Debounce
(ms) [
integer
] - delay to validate the value;
Validate Icon
[
boolean
] - icon to be showed on validate the value;
Validate Status
[
Status type
] - status to be showed on validate the value;
Validate Message
[
string
] - message to be showed on validate the value.
Switch Set Properties
Sets all switch properties
Input
parameters:
Component Id
[
string
]
-
switch component's identifier;
Label
[
string
] - component's label;
Placeholder
[
string
] - component's placeholder;
Disable
[
boolean
] - disables component if
true
;
Visible
[
boolean
] - component visibility state
.
Tooltip
[
string
] - tooltip string;
Required Mark
[
boolean
] - shows required mark if
true
;
Debounce
(ms) [
integer
] - delay to validate the value;
Validate Icon
[
boolean
] - icon to be showed on validate the value;
Validate Status
[
Status type
] - status to be showed on validate the value;
Validate Message
[
string
] - message to be showed on validate the value.
Switch Update Properties
Update switch properties
Input
parameters:
Component Id
[
string
]
-
switch component's identifier;
Label
[
string
] - component's label;
Placeholder
[
string
] - component's placeholder;
Disable
[
boolean
] - disables component if
true
;
Visible
[
boolean
] - component visibility state
.
Tooltip
[
string
] - tooltip string;
Required Mark
[
boolean
] - shows required mark if
true
;
Debounce
(ms) [
integer
] - delay to validate the value;
Validate Icon
[
boolean
] - icon to be showed on validate the value;
Validate Status
[
Status type
] - status to be showed on validate the value;
Validate Message
[
string
] - message to be showed on validate the value.
Usage example:
Switch can be used to publish existing posts
​
Previous
Tabs
Next
Label
Last modified
3mo ago
Copy link
Outline
Look&Feel Settings:
Workflow triggers:
Component Actions:
Switch Get Properties
Switch Set Properties
Switch Update Properties
Usage example: