Client Adapter
TheClientAdapter performs all data processing operations client-side, including filtering, sorting, and pagination. Best for datasets under 10,000 rows.
Import
Features
- Client-side filtering with
createFilter - Multi-column sorting with locale support
- Pagination with
createPagination - Automatic page reset on filter/sort changes
- Custom sort comparators per column
- Custom filter functions per column
Basic Usage
Pipeline Stages
The adapter processes items through three stages:- Filtering - Filter items by search query
- Sorting - Sort by column keys and directions
- Pagination - Slice items for current page
Sorting
Multi-Column Sort
Custom Sort Comparators
Locale-Aware Sorting
Filtering
Basic Search
Custom Column Filters
Pagination
Nested Property Access
The adapter supports dot notation for nested properties:Performance
The
ClientAdapter is optimized for datasets up to 10,000 rows. For larger datasets, consider:- VirtualAdapter for 10,000-100,000 rows with virtual scrolling
- ServerAdapter for 100,000+ rows with server-side processing
TypeScript
API Reference
Constructor
Methods
| Method | Description |
|---|---|
setup(context) | Sets up the adapter with data table context |
Context Interface
Return Value
See Also
- Server Adapter - Server-side processing
- Virtual Adapter - Virtual scrolling
- createDataTable - Data table composable