Table
The Table component is a versatile UI element allowing structured data display with customizable columns, pagination, filtering, and styling options.
Web-only UI Component: The Table component is designed specifically for web applications and includes theming options for consistent design across the platform.
Configuring the Table element
The Table component closely mirrors some of the functionalities of the Collection component. When configuring a Table, you define the number of columns, which automatically generates two prototypes: th
(table header) and tr
(table row).
th
- Used for defining column headers.tr
- Repeated for each row based on the source data.
The table example above is generated based on dynamic data. We used a JavaScript business rule to prepopulate the table with an array of objects, similar as in collection configuration.
Table Elements
- Table Header: The top row containing column labels.
- Rows: Each row represents a single data entry.
- Cells: Individual cells hold data points within each row.
- Cell Elements: Customizable elements within each cell for dynamic data presentation.
When creating a table, three columns with one corresponding cells are added by default.
Table generic settings
The following generic settings are found in the Generic tab and apply to all platforms (Web, iOS, and Android):
Source key
Similar to Collection, the Table component requires a source
(array of objects) to populate rows dynamically.
Columns
Customize the columns displayed in the table, including adding, deleting, or renaming columns.
Table Body
- Pagination: Control how data is displayed by configuring pagination or enabling scrolling.
- Page Size: Set the maximum number of entries displayed per page.
- Scrollable: Disable pagination to enable continuous scrolling through data.
Hide condition
Using the data key from a related element, apply JavaScript expressions to control the Table’s visibility based on dependencies.
Demonstration:
Table styling
Sizing
- Fit Width: Expands to fill available width (default).
- Fit Height: Automatically adjusts height to content (default).
Cell styling
Layout Options:
- Direction: Horizontal (default).
- Justify: Space-around (evenly spaces elements within each cell).
- Align: Start (left-aligned).
- Wrap: Enables text wrapping.
- Gap: 8px spacing between cell elements.
Column Style Options:
- Width Fit Options:
- Fill: Fills available container space.
- Fixed: Keeps a fixed column width.
- Auto: Adjusts column width to fit content.
- User Resizable Columns: Adjust column width by dragging the column edges in the header, enhancing customization.
This Table component enhances flexibility and offers a cohesive design, integrated with FlowX.AI’s theming framework for a consistent, web-optimized user experience.
Actions in table cells
When configuring actions within a Table component, each action is bound to a unique table item key, ensuring that interactions within each cell are tracked and recorded precisely. The key allows the action to target specific rows and store results or updates effectively.
- Table Item Save Key: This key is essential for identifying the exact cell or row where an action should be executed and saved. It ensures that data within each cell remains distinct and correctly mapped to each table entry.
- Custom Key for Data Saving: You must add a custom key to save action data in a table cell, especially when handling unique interactions like inline editing or dynamic data updates within cells.
- Supported Action Types - Available actions include:
- Action: Initiates predefined actions within the cell.
- Start Process Inherit: Enables workflows inherited from process configurations to be triggered.
- Upload: Allows file or data uploads directly within a table cell.
- External: Used to create an action that will open a link in a new tab.
FAQs
Was this page helpful?