Elements
All elements are divided into four categories: Containers, Sections, Lists, and Basic Components. Each category contains a set of elements that can be added to the widget. This article provides an overview of the elements available in each category.
Containers
Containers are layout elements that provide structure to the widget. They are invisible to the user and serve to organize the widget’s content. Containers arrange elements in a specific way that cannot be achieved with other components.
Sections
Sections represent different parts of the loyalty program in an engaging way. They display key information about specific aspects of the loyalty program. In most cases, a section includes a link configuration that directs users to a page containing the relevant list.
For example, the Daily Bonus section displays the daily bonus element from the user's level. If the user's level does not include a daily bonus, the section will not be displayed.
Lists
Lists display all available elements related to a specific part of the loyalty program.
For example:
- The All Levels list displays all levels available in the loyalty program.
- The User Stats list displays only the current user's level.
Basic Components
Basic Components are simple elements that do not include any logic. They are primarily used for displaying static information or organizing navigation.
For example:
- The Text component displays a simple text message.
- The Button component creates a button that links to another page.
Updated 23 days ago