mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-30 07:59:50 -08:00
29 lines
528 B
HTML
29 lines
528 B
HTML
<section>
|
|
<h2>
|
|
Can I change how selecting results works?
|
|
</h2>
|
|
|
|
<h3>
|
|
Can I select the highlighted result when the dropdown is closed?
|
|
</h3>
|
|
|
|
{% highlight js linenos %}
|
|
$('select').select2({
|
|
selectOnClose: true
|
|
});
|
|
{% endhighlight %}
|
|
|
|
{% include options/not-written.html %}
|
|
|
|
<h3>
|
|
Can I prevent the dropdown from closing when a result is selected?
|
|
</h3>
|
|
|
|
{% highlight js linenos %}
|
|
$('select').select2({
|
|
closeOnSelect: false
|
|
});
|
|
{% endhighlight %}
|
|
|
|
{% include options/not-written.html %}
|
|
</section> |