datatable/README.md
2018-05-30 08:18:01 +05:30

1.1 KiB

Frappe DataTable

A modern datatable library for the web

[![travis build](https://img.shields.io/travis/frappe/datatable.svg?style=flat-square)](https://travis-ci.org/frappe/datatable) [![version](https://img.shields.io/npm/v/frappe-datatable.svg?style=flat-square)](http://npm.im/frappe-datatable) [![MIT License](https://img.shields.io/npm/l/frappe-datatable.svg?style=flat-square)](http://opensource.org/licenses/MIT)

Features

  • Resizable columns
  • Sorting
  • Custom formatted data
  • In place editing
  • Efficient rendering of large data

Usage

var grid = new DataTable(document.querySelector('#data-table'), {
  data: {
    columns: [ 'Sr No.', 'First Name', 'Last Name' ],
    rows: [
      [ '1', 'Don', 'Joe' ],
      [ '2', 'Mary', 'Jane' ]
    ]
  }
});

Contribute

  • yarn start - Start rollup watch
  • yarn build - Build js/css bundles

License

MIT