Skip to content

Commit

Permalink
Merge pull request harvesthq#1766 from harvesthq/add-no-results-docs
Browse files Browse the repository at this point in the history
Add documentation for new `no_results` event
  • Loading branch information
pfiller committed Feb 7, 2014
2 parents c62d160 + 4f9582d commit f6f87c4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions public/options.html
Expand Up @@ -196,22 +196,30 @@ <h3>Example:</h3>
</tr>
<tr>
<td>chosen:ready</td>
<td>after Chosen has been fully instantiated (it also sends the <code class="language-javascript">chosen</code> object as a parameter).</td>
<td>after Chosen has been fully instantiated.</td>
</tr>
<tr>
<td>chosen:maxselected</td>
<td>triggered if <code class="language-javascript">max_selected_options</code> is set and that total is broken. (it also sends the <code class="language-javascript">chosen</code> object as a parameter)</td>
<td>triggered if <code class="language-javascript">max_selected_options</code> is set and that total is broken.</td>
</tr>
<tr>
<td>chosen:showing_dropdown</td>
<td>triggered when Chosen's dropdown is opened (it also sends the <code class="language-javascript">chosen</code> object as a parameter).</td>
<td>triggered when Chosen's dropdown is opened.</td>
</tr>
<tr>
<td>chosen:hiding_dropdown</td>
<td>triggered when Chosen's dropdown is closed (it also sends the <code class="language-javascript">chosen</code> object as a parameter).</td>
<td>triggered when Chosen's dropdown is closed.</td>
</tr>
<tr>
<td>chosen:no_results</td>
<td>triggered when a search returns no matching results.</td>
</tr>
</table>

<p style="margin-top: 1em;">
<strong>Note:</strong> all custom Chosen events (those that being with <code class="language-javascript">chosen:</code>) also include the <code class="language-javascript">chosen</code> object as a parameter.
</p>

<h2><a name="triggerable-events" class="anchor" href="#triggerable-events">Triggerable Events</a></h2>
<p>You can trigger several events on the original select field to invoke a behavior in Chosen.</p>

Expand Down

0 comments on commit f6f87c4

Please sign in to comment.