Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vincjo/datatables

A toolkit for creating datatable components with Svelte
https://github.com/vincjo/datatables

datatable datatables filter headless lazy-loading pagination selection simple sort svelte sveltejs table

Last synced: 2 days ago
JSON representation

A toolkit for creating datatable components with Svelte

Awesome Lists containing this project

README

        


logo



svelte simple datatables


A powerful toolkit for building datatable components.


any text
last commit

# Docs
Streamline your data workflow with a robust API providing advanced features while reducing code complexity.

:globe_with_meridians: **[vincjo.fr/datatables](https://vincjo.fr/datatables)**

# Install

```apache
npm i -D @vincjo/datatables
```

# Smooth transition from v1 to v2

In order to make the migration process a little easier, v1 is embed in “legacy” namespace so you will have the opportunity to upgrade your components progressively by simply modifying imports.

```diff
- @vincjo/datatables
+ @vincjo/datatables/legacy

- @vincjo/datatables/remote
+ @vincjo/datatables/legacy/remote
```

# Sample code

```svelte

import { TableHandler } from '@vincjo/datatables'
import { someData } from './data'

const table = new TableHandler(someData, { rowsPerPage: 50 })



First name
Last name



{#each table.rows as row}

{row.first_name}
{row.last_name}

{/each}

```