Skip to content

Commit

Permalink
Update the options copy to be a little more DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
pfiller committed Feb 7, 2014
1 parent 63bb398 commit 4f9582d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions public/options.html
Expand Up @@ -196,26 +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 (it also sends the <code class="language-javascript">chosen</code> object as a parameter).</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 4f9582d

Please sign in to comment.