1.1.1 • Published 3 years ago

svelte-advanced-tables v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

<Table /> //When no data are provided, it loads some default data

<Table table_data="{data}" /> //Here is the way to add custom data

Examples

You will it find in the folder : sample

Contribution

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

Credits

Maintainer: Emmanuel ADEKPLOVI

⌨️ Build with ❤️ by HomeScript 😊

1.1.1

3 years ago

1.0.3-a

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago