From be8e9f88ff229479a573eaf43425a200d4c01c33 Mon Sep 17 00:00:00 2001 From: vvo Date: Wed, 5 Aug 2015 00:07:16 +0200 Subject: [PATCH] docs(readme): update doc --- README.md | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index d4d761cdb3..188753674e 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ instant.addWidget( instantsearch.widgets.searchBox({ container: '#search-box', placeholder: 'Search for products', - // cssClass: 'form-control' + // cssClass }) ); ``` @@ -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: '»' // » @@ -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 }) ); ```