datatable/README.md
Faris Ansari c95fa505dd
Update npm version badge (#31)
* Update npm version badge

* Update license badge
2018-05-30 15:02:04 +05:30

46 lines
1.0 KiB
Markdown

<div align="center">
<img src="https://github.com/frappe/design/blob/master/logos/data-table-logo.svg" height="128">
<h2>Frappe DataTable</h2>
<p align="center">
<p>
A modern datatable library for the web
</p>
[![travis build](https://api.travis-ci.com/frappe/datatable.svg?branch=master)](https://travis-ci.org/frappe/datatable)
[![npm version](https://badge.fury.io/js/frappe-datatable.svg)](https://badge.fury.io/js/frappe-datatable)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
</div>
## Features
* Resizable columns
* Sorting
* Custom formatted data
* In place editing
* Efficient rendering of large data
## Usage
```js
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