fix readme
This commit is contained in:
parent
8dbeea9ba1
commit
c8bf326f70
23
README.md
23
README.md
@ -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' ]
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user