File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -145,10 +145,7 @@ search.addWidget(
145
145
{name: ' instant_search_price_asc' , label: ' Lowest price' },
146
146
{name: ' instant_search_price_desc' , label: ' Highest price' }
147
147
],
148
- htmlAttributes: {
149
- id: ' indexSelectorDropdown' ,
150
- class: ' form-control'
151
- }
148
+ cssClass: ' form-control'
152
149
})
153
150
);
154
151
```
@@ -158,7 +155,7 @@ search.addWidget(
158
155
* Instantiate a dropdown element to choose the current targeted index
159
156
* @param {String|DOMElement} options.container Valid CSS Selector as a string or DOMElement
160
157
* @param {Array} options.indices Array of objects defining the different indices to choose from. Each object must contain a `name` and `label` key.
161
- * @param {String} [options.htmlAttributes] Object of html attributes to be passed to the generated ` select` element
158
+ * @param {String} [options.cssClass] Class name(s) to be added to the generated select element
162
159
* @return {Object}
163
160
*/
164
161
```
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ var utils = require('../lib/widget-utils.js');
7
7
* Instantiate a dropdown element to choose the current targeted index
8
8
* @param {String|DOMElement } options.container Valid CSS Selector as a string or DOMElement
9
9
* @param {Array } options.indices Array of objects defining the different indices to choose from. Each object must contain a `name` and `label` key.
10
- * @param {String } options.cssClass Class name(s) to be added to the generated select element
10
+ * @param {String } [ options.cssClass] Class name(s) to be added to the generated select element
11
11
* @return {Object }
12
12
*/
13
13
function indexSelector ( {
@@ -18,7 +18,7 @@ function indexSelector({
18
18
var IndexSelector = require ( '../components/IndexSelector' ) ;
19
19
var containerNode = utils . getContainerNode ( container ) ;
20
20
21
- var usage = 'Usage: indexSelector({container, indices[, htmlAttributes ]})' ;
21
+ var usage = 'Usage: indexSelector({container, indices[, cssClass ]})' ;
22
22
if ( container === null || indices === null ) {
23
23
throw new Error ( usage ) ;
24
24
}
You can’t perform that action at this time.
0 commit comments