You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -161,13 +156,15 @@ Consider a normal search page with basic layout as shown in the figure below and
161
156
```javascript
162
157
...
163
158
,searchQueryDisplay : '#search_title'
164
-
,searchQueryDisplayTemp : 'Search results for {{query}} - {{numberOfProducts}}'
159
+
,searchQueryDisplayTemp : 'Search results for {{query}} - Showing {{start}}-{{end}} of {{numberOfProducts}} Results'
165
160
...
166
161
167
162
//JSON used for this template
168
163
{
169
164
query : "something"
170
165
,numberOfProducts : 1234
166
+
,start: 1
167
+
,end: 24
171
168
}
172
169
```
173
170
-**pageSize** : The total number of results to be displayed in a single call. The value should be greater than ZERO. *It is suggested that the value to be multiple of number of columns (ex. if 3 columns then 15 or 18 or 21).*
@@ -183,7 +180,7 @@ Consider a normal search page with basic layout as shown in the figure below and
@@ -454,25 +451,187 @@ Consider a normal search page with basic layout as shown in the figure below and
454
451
}
455
452
```
456
453
-**setDefaultFilters** : This option is a function which can be used to set default filters and/or sorts. An example implementation is below.
457
-
```javascript
454
+
```javascript
458
455
...
459
456
,setDefaultFilters : function(){
460
457
//to make the results by default sorted by quantity
461
458
this.addQueryParam('sort',"quantity desc");
462
459
}
463
460
...
464
461
```
462
+
465
463
-**onIntialResultLoad** : This option takes a function which will be executed after rendering of first result page with the search response as its first argument.
466
464
-**onPageLoad** : This option takes a function which will be executed after rendering of new result page from second page with the search response as its first argument.
467
465
-**onNoResult** : This option takes a function which will be executed if there are no results available.
468
466
-**bannerSelector** : The jQuery selector for the container where the banner needs to be displayed.
469
-
-**bannerTemp**: The template to be used when rendering the banner.
470
-
-**fields** : This is an array of all required fields for generating result template. This is helpful to load the results faster. An example implementation is below.
-**fields** : This is an array of all required fields for generating result template. This is helpful to load the results faster. An example implementation is below
0 commit comments