Appizap
  • Appizap Overview
  • Build Apps
    • On-boarding Flow
    • Ideas to Apps using AI
    • Create a new app
    • App Configuration
      • App Overview
      • General Settings
      • Domain Settings
      • Version Release & Management
      • App Assets
      • Auth Settings
    • UI Builder
      • Module
      • Menu Navigation
      • Version Logs & Restore
      • Keyboard Shortcuts
    • GUI, Themes & Styles
    • Event handlers
    • Write JavaScript
      • JavaScript within {{ }}
      • JavaScript Query
      • Transformers
      • Temporary State
      • Data Responder
      • Built-in JavaScript Functions
      • Use Third-party Libraries
    • How-to-use
      • Welcome to Appizap!
      • FAQ
  • Appizap Dashboard
    • Your Apps
    • Database
    • Workflows
    • Media & Files
    • Query Library
    • Audit Logger
    • Templates
  • Workspaces
    • Workspace Settings
    • User Authentication
    • User Groups
    • Themes
    • Advanced
  • Appizap Concepts
  • Appizap Studio
    • Data Browser
      • Screen, Modules & Navigations
      • Active Components
      • In-App Modals
      • Data Queries in your App
      • Global Data Variables
    • Layers
    • Screen Settings
    • Debugger
    • Data Queries
    • Widget Library
      • Link
      • Icons
      • Steps
      • Button Group
      • Form Button
      • Grid
      • Responsive Grid Layout
      • Drawer
      • Navigation
      • Cascader
      • Comment
      • Mention
      • Collapsible Container
      • Rich Text Editor
      • Input
      • Modal
      • Text Display
      • Number Input
      • Password
      • List View
      • Date
      • Checkbox
      • Radio
      • Switch
      • Multi Select
      • Dropdown
      • File Upload
      • Phone Number Input
      • Download Pdf Button
      • Image
      • Divider
      • Progress Circle
      • Progress
      • Form
      • JSON Schema Form
      • Container
      • Tabbed Container
      • Table
      • Date Range
      • Time
      • Time Range
      • Toggle Button
      • Segmented Control
      • Rating
      • Timeline
      • Slider
      • Range Slider
      • Control Button
      • File Viewer
      • Image Carousel
      • Lottie Animation
      • Tree
      • Tree Select
      • IFrame
      • Calendar
      • Custom Component
      • Auto Complete
      • Chart
      • Graph Chart
      • Treemap Chart
      • Basic Chart
      • Geo Map Charts
      • Funnel Chart
      • Candlestick Chart
      • Select
      • Audio
      • Caller
      • Text Area
      • Responsive Flex Layout
      • Timer
      • Image Editor
      • AI Component
    • Component Specific Actions
  • Database
    • Connect DB
    • Build Internal DB
      • Arrays
      • Indexes
      • Using JSON Type
      • Cascade Delete
      • Data Load and Import
    • Data Sources
      • Connect Data Sources
        • Big Query
        • ClickHouse
        • CouchDB
        • DynamoDB
        • Elasticsearch
        • MariaDB
        • Microsoft SQL Server
        • MongoDB
        • MySQL
        • Oracle
        • PostgreSQL
        • Redis
        • Snowflake
      • Connect APIs
        • REST API
        • GraphQL
        • Google Sheets
        • S3
        • OpenAPI
        • Firebase
        • WooCommerce
        • OpenAI
        • Athena
        • Lambda
    • Query Library
    • Storage
      • Buckets
      • Uploads
      • Objects
  • Appizap Workflow Builder [Pro]
    • Workflows
      • Create a workflow
      • Nodes
      • Connections
      • Sticky Notes
      • Tags
      • Import and Export
      • Templates
      • Sharing
      • Settings
      • History
      • Find Workflow ID
    • Build Flow Logic
      • Conditional Nodes
      • Data Merging
      • Looping
      • Waiting
      • Sub-Workflow
      • Execution Order
    • Data Handling
      • Data Structure
      • Transforming data
      • Use Code
      • Mapping using UI
      • Data Item Linking
      • Data Pinning
      • Data Editing
      • Data Filtering
      • Data Mocking
      • Binary Data
    • Editor UI
    • Credentials
      • Create and Edit
      • Sharing
    • Integrations
      • Node Types
      • Core Nodes
      • Actions
      • Triggers
      • Credentials
      • Custom API Operations
    • Error Handling
      • Errors related to memory
    • Keyboard Shortcuts
  • Security & Compliance
  • Terms & Conditions
  • Privacy Policy
  • User Guide
    • Getting Started
    • Admin Console
    • Data Maintenance
Powered by GitBook
On this page
  • Basic
  • Validation
  • Interaction
  • Label
  • Layout
  • Style
  1. Appizap Studio
  2. Widget Library

Segmented Control

It is a set of choices or options arranged horizontally, and the user can pick one choice from the set. Recommended using the widget to show related multiple toggle options.

PreviousToggle ButtonNextRating

Last updated 4 months ago

Basic

Manual

The list of options for the toggle set. The set can contain a single option, and more options can be added.

Property
Description

Label

The text to be displayed to represent the choice

Value

The string value to refer the option element. It is used during development typically.

Prefix Icon

Pick an icon by choosing one from the list of icons

Disabled

Disables the user interaction with the option on the page. It visually indicates that the element is inactive and prevents users from interacting with it when applied

Hide

This sets whether this option has to be displayed on the screen when the program is loaded. This shows/hides the option both on desktop and mobile devices.

Map

Provide the JSON data of the array, consisting of the checkbox options in the key-value pair format.

Below is a sample JSON content - it must be placed in the 'Data' field of the Map section.

[
  {
    "count": "32",
    "title": "Channel Uploads",
  },
  {
    "count": "253",
    "title": "Oldest",
  },
  {
    "count": "25",
    "title": "Newest",
  },
  {
    "count": "10",
    "title": "Top",
  }
]
Property
Description

Label

The user must fill in the Label field with the code mentioned to get the data displayed. {{item.title}}

Value

The value field may refer the same Label string or user can mention a value in the JSON array with "value" property.

Prefix Icon

Pick an icon by choosing one from the list of icons. The value picked in this field will reflect in every node of the widget.

Disabled

Disables the user interaction with the option on the page. The value set in this field will reflect in every node of the widget.

Hide

This sets whether this option has to be displayed on the screen when the program is loaded. The value set in this field will reflect in every node of the widget.

Default Value

Enter the default option to be toggled-on when the widget is loaded. This can also be retrieved from the backend using query or loaded using low-code

Validation

Required Field

Refers to the field that must be completed by the user, which means the field must be entered with a valid value before submitting the information.

Custom Rule

Apart from validating the entry using the regex rule, users can also use this property to write low-code and check other aspects. For example - check if the city selected in the previous field matches the desired value, throw a custom message to the user even before capturing the entry on this field.

Interaction

Event Handlers

Event
Description

Change

Disabled

Disables the user interaction with the element on the page. It visually indicates that the element is inactive and prevents users from interacting with it when applied. Shows a red-crossed warning symbol and can be customized to disable the widget according to certain conditions using low-code.

Hide

This sets whether the widget has to be displayed on the screen when the program is loaded. This shows/hides the widget both on desktop and mobile devices.

Label

Represents the caption for the widget in the user interface. It is recommended to keep the label string short and convey the usage of the widget in the UI

Position

Property
Description

Left

Top

Alignment

Property
Description

Left

Right

Width

Enter a number value to set the width of the widget. It can be set in terms of pixels and percentage.

Layout

Widget Tooltip

This tooltip pops up when the user moves the mouse over the input area of the widget. It is commonly used to hint at the type of input the user needs to provide.

The tooltip will be immediately shown when the user's mouse hovers over the widget, and immediately hides when the user's mouse leaves. This information will be contextual, useful, and informative.

Style

Property
Description

Label

Set the colour for the label text. Recommended to set in contrast with the background.

Text Color

Set the colour of the text. Recommended to set in contrast with the background.

Text Transform

Text Decoration

This property sets the appearance of decorative lines on text. Types are "underline", "overline", "line-though", "overline-underline".

Text Size

Set the size of the text in px value - 12px

Text Weight

Increase or decrease the thickness of the font using the list of numbers from 100-800.

Font Family

Font Style

There are 3 types of styles that can be applied: "normal" - The text is shown normally, no style applied. "italic" - The text is cursive. "oblique" - A sloped version of the normal text.

Margin

This value is set in terms of "px" number which creates the space between the border and the content of the widget.

Padding

This value is set in terms of "px" number which creates the space between the border and outer elements.

Border Radius

This sets the radius of the widget's corners, enabling rounded corners on the widget. This value is defined in "px" terms.

Indicator Background

The objective of this technique is to create a two-colour focus indicator (having indicator background colour along with background colour) that has sufficient contrast against any solid background colour.

Inactive Tab Text Color

Set the color for the text that are placed in the inactive segments.

Inactive Tab Background Color

Set the background color for the inactive tabs.

Background

Users can change the colour of the text background using this property. It has all the RGB colour ranges to pick from. It is recommended to use a corresponding background colour that shows the font clearly.

Border Color

Set the colour to the border lines. The border lines will be shown only if that is enabled.

Border Width

Set the thickness of the border of the widget using this value. It is defined using "px" terms.

Validation Message

Set the colour of the validation text message. Recommended to set in contrast with the background, usually Red.

The "Change" event is activated when the value of the widget is changed. When this event triggers, the associated action gets executed.

Shows the label on the left side of the widget entry

Shows the label on top of the widget entry

Align the text on the left corner of the label area

Align the text on the right corner of the label area near the tree view

This property specifies how to capitalize an element's text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.

Type the name of the font family. The reference to the list of font families can be found here:

MDN web docs
MDN web docs
Read-only
Set the visibility