-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(infinite-hits): disable load more button when no more pages (#1973)
fixes #1971
- Loading branch information
Showing
5 changed files
with
159 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<h4 class="no-toc">Parameters</h4> | ||
<p class="attr-name"> | ||
<span class='attr-required'>`options.container`<span class="show-description">…</span></span> | ||
<span class="attr-infos">(<code>string</code> | <code>DOMElement</code>)</span> | ||
</p> | ||
<p class="attr-description important">CSS Selector or DOMElement to insert the widget</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional important'>`options.hitsPerPage`<span class="show-description">…</span></span> | ||
<span class="attr-infos">Default:<code class="attr-default">20</code>(<code>number</code>)</span> | ||
</p> | ||
<p class="attr-description important">The number of hits to display per page</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional'>`options.templates`<span class="show-description">…</span></span> | ||
<span class="attr-infos">(<code>Object</code>)</span> | ||
</p> | ||
<p class="attr-description">Templates to use for the widget</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional'>`options.templates.empty`<span class="show-description">…</span></span> | ||
<span class="attr-infos">Default:<code class="attr-default">""</code>(<code>string</code> | <code>function</code>)</span> | ||
</p> | ||
<p class="attr-description">Template to use when there are no results.</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional'>`options.templates.item`<span class="show-description">…</span></span> | ||
<span class="attr-infos">Default:<code class="attr-default">""</code>(<code>string</code> | <code>function</code>)</span> | ||
</p> | ||
<p class="attr-description">Template to use for each result. This template will receive an object containing a single record.</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional'>`options.showMoreLabel`<span class="show-description">…</span></span> | ||
<span class="attr-infos">Default:<code class="attr-default">"Show more results"</code>(<code>string</code>)</span> | ||
</p> | ||
<p class="attr-description">label used on the show more button</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional'>`options.transformData`<span class="show-description">…</span></span> | ||
<span class="attr-infos">(<code>Object</code>)</span> | ||
</p> | ||
<p class="attr-description">Method to change the object passed to the templates</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional'>`options.transformData.empty`<span class="show-description">…</span></span> | ||
<span class="attr-infos">(<code>function</code>)</span> | ||
</p> | ||
<p class="attr-description">Method used to change the object passed to the `empty` template</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional'>`options.transformData.item`<span class="show-description">…</span></span> | ||
<span class="attr-infos">(<code>function</code>)</span> | ||
</p> | ||
<p class="attr-description">Method used to change the object passed to the `item` template</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional'>`options.cssClasses`<span class="show-description">…</span></span> | ||
<span class="attr-infos">(<code>Object</code>)</span> | ||
</p> | ||
<p class="attr-description">CSS classes to add</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional'>`options.cssClasses.root`<span class="show-description">…</span></span> | ||
<span class="attr-infos">(<code>string</code> | <code>Array.<string></code>)</span> | ||
</p> | ||
<p class="attr-description">CSS class to add to the wrapping element</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional'>`options.cssClasses.empty`<span class="show-description">…</span></span> | ||
<span class="attr-infos">(<code>string</code> | <code>Array.<string></code>)</span> | ||
</p> | ||
<p class="attr-description">CSS class to add to the wrapping element when no results</p> | ||
<p class="attr-name"> | ||
<span class='attr-optional'>`options.cssClasses.item`<span class="show-description">…</span></span> | ||
<span class="attr-infos">(<code>string</code> | <code>Array.<string></code>)</span> | ||
</p> | ||
<p class="attr-description">CSS class to add to each result</p> | ||
|
||
<p class="attr-legend">* <span>Required</span></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters