Skip to content

Commit

Permalink
docs(readme): update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Aug 4, 2015
1 parent 76d1600 commit be8e9f8
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ instant.addWidget(
instantsearch.widgets.searchBox({
container: '#search-box',
placeholder: 'Search for products',
// cssClass: 'form-control'
// cssClass
})
);
```
Expand All @@ -109,13 +109,12 @@ instant.addWidget(
instant.addWidget(
instantsearch.widgets.pagination({
container: '#pagination',
// cssClass, // no default
// cssClass, // add cssClasses to the main wrapper
// padding: 3, // number of page numbers to show before/after current
// showFirstLast: true, // show or hide first and last links
// hitsPerPage: 20,
// maxPages, // automatically computed based on the result set
// labels: {
// previous: '‹', // ‹
// prev: '‹', // ‹
// next: '›', // ›
// first: '«', // «
// last: '»' // »
Expand All @@ -135,20 +134,11 @@ instant.addWidget(
instantsearch.widgets.hits({
container: '#hits',
templates: {
noResults, // string (mustache format) or function(hit) return string
empty, // string (mustache format) or function(hit) return string
hit // string (mustache format) or function(hit) return string
}
// cssClass, // no default
// padding: 3, // number of page numbers to show before/after current
// showFirstLast: true, // show or hide first and last links
// hitsPerPage: 20,
// maxPages, // automatically computed based on the result set
// labels: {
// previous: '‹', // ‹
// next: '›', // ›
// first: '«', // «
// last: '»' // »
// }
},
hitsPerPage: 20,
// cssClass
})
);
```
Expand Down

0 comments on commit be8e9f8

Please sign in to comment.