You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unify table and grid modes into single ObjectTableSchema
Merged ObjectGridSchema properties into ObjectTableSchema for a unified schema:
- Single type accepts both 'object-table' and 'object-grid'
- Grid features (editable, keyboardNavigation, frozenColumns, resizableColumns)
are now optional properties in ObjectTableSchema
- ObjectGridSchema kept as deprecated type for backward compatibility
- Simplified component implementation with single schema type
- Updated documentation to show unified approach
Benefits:
- Simpler API - one schema type instead of two
- Cleaner mental model - same type with optional grid features
- Easier migration - just add editable: true for grid mode
- Backward compatible - object-grid type still works
Example:
```typescript
// Traditional table
{ type: 'object-table', objectName: 'users', ... }
// Grid mode (inline editing)
{ type: 'object-table', objectName: 'products', editable: true, ... }
```
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copy file name to clipboardExpand all lines: content/docs/plugins/plugin-object/index.mdx
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,18 +20,18 @@ The plugin provides three main components for building CRUD interfaces:
20
20
21
21
### ObjectTable
22
22
23
-
Enterprise-grade table component with dual modes: traditional CRUD operations and spreadsheet-like inline editing. Built on data-table foundation with automatic field type rendering.
23
+
Enterprise-grade table component with unified schema supporting both traditional CRUD and spreadsheet-like inline editing. Built on data-table foundation with automatic field type rendering.
Both modes inherit all data-table features: sorting, filtering, pagination, row selection, CSV export, column resizing, and reordering.
17
+
Both modes use the same `object-table` schema type and inherit all data-table features: sorting, filtering, pagination, row selection, CSV export, column resizing, and reordering.
18
18
19
19
## Interactive Demo
20
20
@@ -39,11 +39,11 @@ Both modes inherit all data-table features: sorting, filtering, pagination, row
39
39
export: true
40
40
}
41
41
}}
42
-
title="ObjectTable - Table Mode"
42
+
title="ObjectTable - Traditional Mode"
43
43
description="Auto-generated columns with type-aware rendering and CRUD operations"
0 commit comments