Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ BetterForms provides powerful options for displaying tabular data, from simple l
* Good for data input scenarios
* Limited sorting and filtering

### 2. **Data Tables (`tables2`)**
### 2. **Data Tables (`table2`)**

* Advanced data display with sorting, filtering, pagination
* Read-only data presentation
Expand Down Expand Up @@ -154,7 +154,7 @@ Your page's data model should include an array for the list data:
}
```

## Data Tables (`tables2`) Implementation
## Data Tables (`table2`) Implementation

### Where to Add Data Tables in the IDE

Expand All @@ -167,7 +167,7 @@ Your page's data model should include an array for the list data:

```json
{
"type": "tables2",
"type": "table2",
"label": "Customer List",
"model": "customers",
"styleClasses": "col-md-12",
Expand Down Expand Up @@ -210,7 +210,7 @@ Your page's data model should include an array of objects:

```json
{
"type": "tables2",
"type": "table2",
"label": "Order Management",
"model": "orders",
"styleClasses": "col-md-12",
Expand Down Expand Up @@ -251,7 +251,7 @@ Your page's data model should include an array of objects:

```json
{
"type": "tables2",
"type": "table2",
"label": "Customer List",
"model": "customers",
"styleClasses": "col-md-12",
Expand All @@ -271,7 +271,7 @@ Your page's data model should include an array of objects:

```json
{
"type": "tables2",
"type": "table2",
"label": "Customer List",
"model": "customers",
"styleClasses": "col-md-12",
Expand Down Expand Up @@ -300,7 +300,7 @@ let customerName = customer.firstName + ' ' + customer.lastName;

```json
{
"type": "tables2",
"type": "table2",
"label": "Product Catalog",
"model": "products",
"columns": ["name", "price", "inventory", "status", "actions"],
Expand Down Expand Up @@ -331,7 +331,7 @@ Display additional details when a row is expanded:

```json
{
"type": "tables2",
"type": "table2",
"label": "Order List",
"model": "orders",
"columns": ["orderNumber", "customer", "total", "status"],
Expand Down Expand Up @@ -369,7 +369,7 @@ End If

```json
{
"type": "tables2",
"type": "table2",
"label": "Customer List",
"model": "customers",
"columns": ["firstName", "lastName", "email", "actions"],
Expand All @@ -388,7 +388,7 @@ End If

```json
{
"type": "tables2",
"type": "table2",
"model": "products",
"columns": ["name", "category", "price"],
"options": {
Expand All @@ -408,7 +408,7 @@ For numeric sorting of text fields:

```json
{
"type": "tables2",
"type": "table2",
"model": "products",
"columns": ["name", "price", "date"],
"options": {
Expand Down Expand Up @@ -439,7 +439,7 @@ For numeric sorting of text fields:

```json
{
"type": "tables2",
"type": "table2",
"model": "largeDataset",
"columns": ["id", "name", "status"],
"options": {
Expand All @@ -461,7 +461,7 @@ For numeric sorting of text fields:
### 1. **Choose the Right Component**

* Use `listrows` for data entry
* Use `tables2` for data display
* Use `table2` for data display
* Consider user workflow needs

### 2. **Optimize User Experience**
Expand Down