Sign Up

Data Source Mappers

Data Source Mappers are essential components within the Twidget no-code API platform, designed to facilitate the integration of dynamic data sources with UI elements. They serve the purpose of linking data source attributes to the respective fields required by UI components such as dropdowns, radio buttons, and navigation elements.

-

Key Concepts

  • Dynamic Data Source: In Twidget, UI elements can utilize dynamic data sources instead of static data to populate their options. This enhances the flexibility of applications by enabling them to respond to live data.

  • Field Mapping: Field mapping allows developers to specify which attributes of a data source object correspond to the various fields needed by UI components. This includes defining label, value, and visibility settings for options.

Components and Functionality

  • Data Source List Object: This refers to a structured collection of objects, each typically containing attributes like label, value, and visible. The list itself serves as the data pool from which UI components derive their options.

  • Dropdowns and Navigation Elements: These UI components, by default, are set to utilize manual data entries. However, through Data Source Mappers, they can be configured to draw from a defined variable, thus leveraging the attributes of the data source list.

  • Field Mapping Section: Within Twidget, the configuration interface provides a field mapping section where developers can connect specific data source attributes to the expected fields of the UI components. Although default mappings are provided (e.g., label, value, visible), these can be customized based on the developer's requirements.

Workflow

The process begins with defining a data source list that contains relevant objects. Developers then configure UI components such as dropdowns or navigation elements to use this list as their data source. By setting up the correct field mappings, the components will appropriately display data driven by the specified attributes of the data source, ensuring that they are dynamically updated and contextually relevant to the application's needs.

In summary, Data Source Mappers are crucial for transforming static UI elements into dynamic interfaces that can adapt according to live data, greatly enhancing the interactive capabilities of applications built on the Twidget platform.

Related Topics

Page Commands

The new page commands in Twidget are designed to enhance the interactivity and responsiveness of web pages created with the platform. These commands allow developers to retrieve contextual information about the current page session and manipulate its content dynamically. Key Concepts. - Page Variabl...

Page Components

Page components are reusable building blocks within the Twidget platform that enhance development efficiency by allowing users to create, manage, and implement consistent UI elements across multiple pages. They serve to encapsulate functionality and design into a single entity, which can be reused a...

reCAPTCHA

Twidget integrates Google's reCAPTCHA, a security service designed to protect websites from spam and abuse by distinguishing between human and automated access. reCAPTCHA operates by requiring users to complete simple tasks, such as identifying objects in images or clicking a checkbox, thereby provi...

Access Path Parameters in a Page

Path parameters play a crucial role in enabling dynamic and targeted content retrieval within the Twidget no-code API platform. This documentation outlines the fundamental concepts of path parameters, their implementation in Twidget pages, and their utility in enhancing page interactivity and config...

Page Layouts

Page layouts in Twidget provide a structured way to organize and present content on a web page. The primary purpose of page layouts is to enhance user experience through effective content management and visual hierarchies. Key Concepts. - Header & Sidebar Layouts: These layouts subdivide the page in...