fix readme

This commit is contained in:
Faris Ansari 2017-10-07 20:26:07 +05:30
parent 8dbeea9ba1
commit c8bf326f70
2 changed files with 6 additions and 19 deletions

View File

@ -1,4 +1,4 @@
# ReGrid
# Frappé DataTable
A modern datatable library for the web
@ -13,25 +13,12 @@ A modern datatable library for the web
## Usage
```js
var grid = new ReGrid({
wrapper: document.querySelector('#data-table'),
var grid = new DataTable(document.querySelector('#data-table'), {
data: {
columns: [
'Sr No.',
'First Name',
'Last Name',
],
columns: [ 'Sr No.', 'First Name', 'Last Name' ],
rows: [
[
'1',
'Don',
'Joe'
],
[
'2',
'Mary',
'Jane'
]
[ '1', 'Don', 'Joe' ],
[ '2', 'Mary', 'Jane' ]
]
}
});

View File

@ -17,7 +17,7 @@
<body>
<h1>Frappé DataTable</h1>
<button onclick="_regrid.render()">Refresh</button>
<button onclick="datatable.render()">Refresh</button>
<section style="width: 60%;">
</section>