Skip to content

Commit ccc5c2f

Browse files
committed
Update docs
1 parent 628c461 commit ccc5c2f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ You'll want to set your table options and pass them into `Sheetsee.makeTable()`.
3434

3535
## Methods
3636

37-
Functions for you to use! There are just two :tada:
37+
Functions for you to use! There are just two, woo!
3838

3939
### `Sheetsee.makeTable(tableOptions)`
4040

4141
You pass in an object containing:
4242

43-
- `data` _array_ your data from Tabletop.js
43+
- `data` _array_ your data from Tabletop.js **required**
4444
- `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**
4747
- `templateID` _string_ the `id` of your `<script>` tag with the template, defaults to assume it's the same as `tableDiv` + `_template`.
4848

4949
```javascript
@@ -52,7 +52,7 @@ var tableOptions = {
5252
"pagination": 10,
5353
"tableDiv": "#fullTable",
5454
"filterDiv": "#fullTableFilter",
55-
"templateID": "fullTable"
55+
"templateID": "fullTable_template"
5656
}
5757
Sheetsee.makeTable(tableOptions)
5858
```
@@ -126,7 +126,7 @@ _JavaScript_
126126
"pagination": 10,
127127
"tableDiv": "#siteTable",
128128
"filterDiv": "#siteTableFilter",
129-
"templateID": "tableTemplate"
129+
"templateID": "siteTable_template"
130130
}
131131
Sheetsee.makeTable(tableOptions)
132132
Sheetsee.initiateTableFilter(tableOptions)

0 commit comments

Comments
 (0)