Add no results text support to docs
This commit is contained in:
parent
cd59bcbd77
commit
b3611d24fc
|
@ -1195,6 +1195,15 @@
|
|||
<code><select data-placeholder="Choose a country..." style="width:350px;" multiple class="chzn-select""></code>
|
||||
<p style="margin-top: 1em;"><strong>Note:</strong> on single selects, the first element is assumed to be selected by the browser. To take advantage of the default text support, you will need to include a blank option as the first element of your select list.</p>
|
||||
</div>
|
||||
|
||||
<h2>No Results Text Support</h2>
|
||||
<div class="side-by-side clearfix">
|
||||
<p>Setting the "No results" search text is as easy as passing an option when you create Chosen:</p>
|
||||
<code>
|
||||
$(".chzn-select").chosen({no_results_text: "No results matched"}); // jQuery version<br />
|
||||
New Chosen($("chzn_select_field"),{no_results_text: "No results matched"}); // Prototype version
|
||||
</code>
|
||||
</div>
|
||||
|
||||
<h2>Change / Update Events</h2>
|
||||
<div class="side-by-side clearfix">
|
||||
|
|
Loading…
Reference in a new issue