1
0
mirror of synced 2025-02-03 21:59:24 +03:00

Updated docs for select2-clearing event.

This commit is contained in:
Duncan Smart 2013-08-30 21:16:02 +01:00
parent 4109775d3b
commit 926d49744b

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>