1
0
mirror of synced 2024-11-22 04:56:08 +03:00

Added initial questions for tagging docs

This commit is contained in:
Kevin Brown 2016-03-08 20:28:36 -05:00
parent 3783354d02
commit 68a199fc98
2 changed files with 51 additions and 0 deletions

View File

@ -5,5 +5,6 @@
{% include options/dropdown/filtering.html %}
{% include options/dropdown/selections.html %}
{% include options/dropdown/tagging.html %}
{% include options/dropdown/placement.html %}
</section>

View File

@ -0,0 +1,50 @@
<section>
<h2>
Can options be created based on the search term?
</h2>
<h3>
How do I enable tagging?
</h3>
{% highlight js linenos %}
$('select').select2({
tags: true
});
{% endhighlight %}
{% include options/not-written.html %}
<h3>
Does tagging work with a single select?
</h3>
{% include options/not-written.html %}
<h3>
How do I add extra properties to the tag?
</h3>
{% include options/not-written.html %}
<h3>
Can I control when tags are created?
</h3>
{% include options/not-written.html %}
<h3>
How do I control the placement of the option?
</h3>
{% highlight js linenos %}
$('select').select2({
insertTag: function (data, tag) {
// Insert the tag at the end of the results
data.push(tag);
}
});
{% endhighlight %}
{% include options/not-written.html %}
</section>