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

View File

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