Skip to content

Commit 15c6db7

Browse files
committed
docs(select2-default): add tags option doc
1 parent 5a592a9 commit 15c6db7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/select2_default.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ Now, if you want to enable [select2](http://ivaynberg.github.io/select2/) for a
2525
```
2626
f.input :created_at, input_html: { class: "select2" }
2727
```
28+
29+
### Options
30+
31+
* `tags`: **(optional)** boolean option, by **default** it's `false`. If `true`, it allows dynamic option creation [as described here](https://select2.org/tagging). It will also add the input's initial value to the select options if it's not in the supplied collection. Note that, unlike the `tags_input`, this does not allow multiple values. Only available for form inputs, not filters.

0 commit comments

Comments
 (0)