FormsTable Component
Description
The FormsTable
component is a fully featured table system designed for complex enterprise applications. It provides:
- Editable rows with validation
- Dynamic context menus
- Column visibility toggles
- Filtering, sorting, and searching
- Batch selection and clipboard integration
- Exporting, importing, and inline editing
Props
Prop | Type | Default | Description |
---|---|---|---|
componentProperties |
ComponentProperties |
- |
Configuration object defining table structure, filters, and behavior. |
displayMode |
LYComponentDisplayMode |
"component" |
Determines how the table is displayed. |
viewGrid |
boolean |
true |
Enables or disables the table grid view. |
viewMode |
LYComponentViewMode |
"table" |
Defines the layout mode (tree, list, grid, etc.). |
onSelectRow |
(row: ITableRow) => void |
undefined |
Callback when a row is selected. |
readonly |
boolean |
false |
If true, disables row editing. |
Example Usage
Using Static Data
FormsTable
can be used with static configuration as shown below:
Using Data from a Provider
The FormsTable
component can also dynamically receive data from a provider.
Example Data Provider
Integrating with AppProvider
This ensures that the FormsTable
dynamically receives its configuration and data.
Useful Links
🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core