Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/homescriptone/svelte-datatables

This project brings DataTable into your Svelte applications.
https://github.com/homescriptone/svelte-datatables

datatables frontend javascript routify svelte sveltejs

Last synced: 9 days ago
JSON representation

This project brings DataTable into your Svelte applications.

Awesome Lists containing this project

README

        

# Svelte DataTables

This project brings DataTable into your Svelte project.

DataTable is a popular JavaScript library allowing you to easily display
your data in a user-friendly table.

You can find more information about DataTable on : https://www.datatables.net

Installation
------------

To install it, you will need to run :

//install with npm
npm install svelte-advanced-tables
//install with yarn or others
yarn : yarn add svelte-advanced-tables

Getting started
---------------

After installing it, to use it, follow the steps below:

import Table from 'svelte-advanced-tables'

let data = {
'rows' : [
[
'TOTAL',
'Djim'
]
],
'columns' : [
'Entreprise',
'First Name'
],
'styles' : [
'thead' : '',
'tbody' : ''
],
};

//Call the component into your svelte page

//When no data are provided, it loads some default data

//Here is the way to add custom data

## Examples

You will it find in the folder : [sample](https://github.com/homescriptone/svelte-datatables/tree/main/sample/)

## Contribution

If you feel that important features are missing, you are free to send a pull request.

## Credits

Maintainer: [Emmanuel ADEKPLOVI](https://github.com/manutheblacker)

⌨️ Build with ❤️ by [HomeScript](https://github.com/homescriptone) 😊