JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 233
  • Score
    100M100P100Q76788F
  • License MIT

A very simple DataTable component for React that takes data via ajax (made for Laravel paginate).

Package Exports

  • react-data-table

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-data-table) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-data-table

A very simple DataTable component for React that load data via ajax (made for Laravel Paginator).

Installation

npm install react-data-table

Usage example

import React from 'react';
import DataTable from 'react-data-table';

var options = {
    i18n: {
        from: 'Risultati da',
        to: 'a',
        of: 'di',
        entries: 'totali.'
    }
};

var columns = [
    {
        name: 'name',
        label: 'Nome',
        sorting: true
    },
    {
        name: 'code',
        label: 'Codice',
        sorting: true
    },
    {
        name: 'price',
        label: 'Prezzo',
        sorting: true,
        mutator: function(price){
            return '€ '+price;
        }
    }
];


React.render(<DataTable url="/products" options={options} columns={columns}></DataTable>, document.getElementById('table'));

Documentation

Coming soon...