Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/homescriptone/svelte-datatables
- Owner: homescriptone
- License: mit
- Created: 2021-09-11T09:06:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-12T07:14:28.000Z (about 3 years ago)
- Last Synced: 2024-10-18T15:53:59.924Z (19 days ago)
- Topics: datatables, frontend, javascript, routify, svelte, sveltejs
- Language: CSS
- Homepage: https://www.npmjs.com/package/svelte-advanced-tables
- Size: 218 KB
- Stars: 17
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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-tablesGetting 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) 😊