Skip to main content

Radio

The Radio component is an interactive UI element that enables users to make single or multiple selections from a predefined set of options. Users can choose one or more options using radio buttons associated with each value in the set.

info

Unlike certain other components, the Radio component cannot be linked to a datasource to display data, instead, options must be configured through the properties panel.

Use Cases

Radio component serve various purposes in user interfaces, including:

  • User Preferences: Select preferred theme, language, or notification settings.

  • Content Filtering: Filter content based on specific categories or criteriay.

  • Survey Management: Manage survey questions with predefined answer choices for collecting feedback and insights.

Properties Customization

Enhance the Radio component to align with your application's requirements using the following customization options:

  • Type: Choose the appearance style of the radio buttons. You can select either "Radio" for standard radio buttons or "Tab" for a tab-like appearance.
explorer
  • Mode: The Radio Button component offers two distinct selection modes:

    • Single Selection: Users can choose only one option at a time, ensuring that their selections are distinct and non-overlapping.

    • Multiple Selection: Users can choose multiple options that are relevant to their needs.
    explorer

  • Default Value: Set a default value for the radio component, ensuring that a specific option is pre-selected when the component is loaded.
explorer
  • Options:

    • Adding Options: Incorporate new options by utilizing the "+" button within the Radio component. Each option can be customized with a label and a corresponding value, enhancing the clarity of user selections.

      • Label: A descriptive text label for each option.

      • Value: A distinct value to each option, enabling effective data handling based on the selections made by users.
      explorer
    • Option Duplication: Duplicate existing options to replicate configurations quickly by clicking on the explorer icon.

    • Option Removal: Delete options that no longer serve a purpose by clicking on the explorer icon.

    • Moving Option: Arrange options to your preferred position by clicking on the explorer icon

Data Integration

The Radio component captures and reflects the user's choice within this set.

info

The Radio component provides selections from a predefined set of options within the properties panel, without relying on datasources.

Data Binding

To enable data capture for the Radio component, follow these steps:

  1. Navigate to the Properties Panel: Access the Data Access category located within the Properties panel for the Radio component.
  1. Define the Datasource: Specify the relevant Datasource that will capture the user's selected choice.
explorer
tip

Alternatively, you can establish the connection by dragging and dropping the datasource onto the Radio component.

Server-Side Interaction

Retrieving user choices is straightforward. By binding a datasource to the Radio component, you can access and utilize the selected content.

For example, when users make a single choice from a set of options, binding a datasource captures the selected option.


Consequently, you can utilize this option value in various ways, such as within a standard action to initiate a search with matching attribute values.
explorer

Additionally:

tip

The Radio component's datasource can also be linked to the value of an attribute in the currently selected entity of another datasource. This enables the component to automatically display the saved value of the selected option whenever a new entity is chosen.

Showcase

Here's a glimpse of how the Radio component will look and behave in action:

explorer

Triggers and Events

The Radio Button component primarily responds to the "On Change" event, triggering actions when users select different options. This interaction allows you to create dynamic and responsive interfaces based on user choices.