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
|
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'
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user