Add no results text support to docs
This commit is contained in:
parent
cd59bcbd77
commit
b3611d24fc
|
@ -1196,6 +1196,15 @@
|
||||||
<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>
|
<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>
|
</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>
|
<h2>Change / Update Events</h2>
|
||||||
<div class="side-by-side clearfix">
|
<div class="side-by-side clearfix">
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in a new issue