|
| 1 | +<h4 class="no-toc">Parameters</h4> |
| 2 | +<p class="attr-name"> |
| 3 | +<span class='attr-required'>`options.container`<span class="show-description">…</span></span> |
| 4 | + <span class="attr-infos">(<code>string</code> | <code>DOMElement</code>)</span> |
| 5 | +</p> |
| 6 | +<p class="attr-description important">CSS Selector or DOMElement to insert the widget</p> |
| 7 | +<p class="attr-name"> |
| 8 | +<span class='attr-optional important'>`options.hitsPerPage`<span class="show-description">…</span></span> |
| 9 | + <span class="attr-infos">Default:<code class="attr-default">20</code>(<code>number</code>)</span> |
| 10 | +</p> |
| 11 | +<p class="attr-description important">The number of hits to display per page</p> |
| 12 | +<p class="attr-name"> |
| 13 | +<span class='attr-optional'>`options.templates`<span class="show-description">…</span></span> |
| 14 | + <span class="attr-infos">(<code>Object</code>)</span> |
| 15 | +</p> |
| 16 | +<p class="attr-description">Templates to use for the widget</p> |
| 17 | +<p class="attr-name"> |
| 18 | +<span class='attr-optional'>`options.templates.empty`<span class="show-description">…</span></span> |
| 19 | + <span class="attr-infos">Default:<code class="attr-default">""</code>(<code>string</code> | <code>function</code>)</span> |
| 20 | +</p> |
| 21 | +<p class="attr-description">Template to use when there are no results.</p> |
| 22 | +<p class="attr-name"> |
| 23 | +<span class='attr-optional'>`options.templates.item`<span class="show-description">…</span></span> |
| 24 | + <span class="attr-infos">Default:<code class="attr-default">""</code>(<code>string</code> | <code>function</code>)</span> |
| 25 | +</p> |
| 26 | +<p class="attr-description">Template to use for each result. This template will receive an object containing a single record.</p> |
| 27 | +<p class="attr-name"> |
| 28 | +<span class='attr-optional'>`options.showMoreLabel`<span class="show-description">…</span></span> |
| 29 | + <span class="attr-infos">Default:<code class="attr-default">"Show more results"</code>(<code>string</code>)</span> |
| 30 | +</p> |
| 31 | +<p class="attr-description">label used on the show more button</p> |
| 32 | +<p class="attr-name"> |
| 33 | +<span class='attr-optional'>`options.transformData`<span class="show-description">…</span></span> |
| 34 | + <span class="attr-infos">(<code>Object</code>)</span> |
| 35 | +</p> |
| 36 | +<p class="attr-description">Method to change the object passed to the templates</p> |
| 37 | +<p class="attr-name"> |
| 38 | +<span class='attr-optional'>`options.transformData.empty`<span class="show-description">…</span></span> |
| 39 | + <span class="attr-infos">(<code>function</code>)</span> |
| 40 | +</p> |
| 41 | +<p class="attr-description">Method used to change the object passed to the `empty` template</p> |
| 42 | +<p class="attr-name"> |
| 43 | +<span class='attr-optional'>`options.transformData.item`<span class="show-description">…</span></span> |
| 44 | + <span class="attr-infos">(<code>function</code>)</span> |
| 45 | +</p> |
| 46 | +<p class="attr-description">Method used to change the object passed to the `item` template</p> |
| 47 | +<p class="attr-name"> |
| 48 | +<span class='attr-optional'>`options.cssClasses`<span class="show-description">…</span></span> |
| 49 | + <span class="attr-infos">(<code>Object</code>)</span> |
| 50 | +</p> |
| 51 | +<p class="attr-description">CSS classes to add</p> |
| 52 | +<p class="attr-name"> |
| 53 | +<span class='attr-optional'>`options.cssClasses.root`<span class="show-description">…</span></span> |
| 54 | + <span class="attr-infos">(<code>string</code> | <code>Array.<string></code>)</span> |
| 55 | +</p> |
| 56 | +<p class="attr-description">CSS class to add to the wrapping element</p> |
| 57 | +<p class="attr-name"> |
| 58 | +<span class='attr-optional'>`options.cssClasses.empty`<span class="show-description">…</span></span> |
| 59 | + <span class="attr-infos">(<code>string</code> | <code>Array.<string></code>)</span> |
| 60 | +</p> |
| 61 | +<p class="attr-description">CSS class to add to the wrapping element when no results</p> |
| 62 | +<p class="attr-name"> |
| 63 | +<span class='attr-optional'>`options.cssClasses.item`<span class="show-description">…</span></span> |
| 64 | + <span class="attr-infos">(<code>string</code> | <code>Array.<string></code>)</span> |
| 65 | +</p> |
| 66 | +<p class="attr-description">CSS class to add to each result</p> |
| 67 | + |
| 68 | +<p class="attr-legend">* <span>Required</span></p> |
0 commit comments