1
0
mirror of synced 2025-02-09 16:49:24 +03:00

Merge pull request #1676 from duncansmart/gh-pages

Updated docs for `select2-clearing` event.
This commit is contained in:
Igor Vaynberg 2013-08-30 14:02:28 -07:00
commit d7652a17ac

View File

@ -1708,6 +1708,15 @@ $("#select").select2({
</p>
</div>
</div>
<div class="row">
<div class="span12">
<h3>select2-clearing</h3>
<p>Fired when a choice is being cleared in the dropdown, but before any modification has been made to the selection.
This event is used to allow the user to reject the clear by calling <code>event.preventDefault()</code></p>
</p>
<p>For the clear button to be visible the <code>allowClear</code> option needs to be <code>true</code>.</p>
</div>
</div>
<div class="row zebra">
<div class="span12">
<h3>select2-removed</h3>