@@ -34,16 +34,16 @@ You'll want to set your table options and pass them into `Sheetsee.makeTable()`.
34
34
35
35
## Methods
36
36
37
- Functions for you to use! There are just two : tada :
37
+ Functions for you to use! There are just two, woo!
38
38
39
39
### ` Sheetsee.makeTable(tableOptions) `
40
40
41
41
You pass in an object containing:
42
42
43
- - ` data ` _ array_ your data from Tabletop.js
43
+ - ` data ` _ array_ your data from Tabletop.js ** required **
44
44
- ` pagination ` _ number_ how many rows displayed at one time, defaults to all
45
- - ` tableDiv ` _ string_ the ` <div> ` ` id ` placeholder in your HTML, includes the hash ` # `
46
- - ` filterDiv ` _ string_ the ` <div> ` ` id ` containing your ` <input> ` filter if using search, includes the hash ` # `
45
+ - ` tableDiv ` _ string_ the ` <div> ` ` id ` placeholder in your HTML, includes the hash ` # ` ** required **
46
+ - ` filterDiv ` _ string_ the ` <div> ` ` id ` containing your ` <input> ` filter if using search, includes the hash ` # ` ** required if using filter **
47
47
- ` templateID ` _ string_ the ` id ` of your ` <script> ` tag with the template, defaults to assume it's the same as ` tableDiv ` + ` _template ` .
48
48
49
49
``` javascript
@@ -52,7 +52,7 @@ var tableOptions = {
52
52
" pagination" : 10 ,
53
53
" tableDiv" : " #fullTable" ,
54
54
" filterDiv" : " #fullTableFilter" ,
55
- " templateID" : " fullTable "
55
+ " templateID" : " fullTable_template "
56
56
}
57
57
Sheetsee .makeTable (tableOptions)
58
58
```
@@ -126,7 +126,7 @@ _JavaScript_
126
126
" pagination" : 10 ,
127
127
" tableDiv" : " #siteTable" ,
128
128
" filterDiv" : " #siteTableFilter" ,
129
- " templateID" : " tableTemplate "
129
+ " templateID" : " siteTable_template "
130
130
}
131
131
Sheetsee .makeTable (tableOptions)
132
132
Sheetsee .initiateTableFilter (tableOptions)
0 commit comments