Skip to content

Commit c5fe12a

Browse files
committed
chore: add changelog entry & doc json format
1 parent b805a74 commit c5fe12a

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

src/Autocomplete/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# CHANGELOG
22

3+
## 2.6.0
4+
5+
- Added support for using `Option Group`: the JSON format takes two new entries
6+
`options` and `optgroups`
7+
8+
```json
9+
{
10+
"results": {
11+
"options": [
12+
{"value": "1", "text": "Pizza", "group_by": ["food"]},
13+
{"value": "2", "text": "Banana", "group_by": ["food"]}
14+
],
15+
"optgroups":[
16+
{"value":"food","label":"food"}
17+
]
18+
}
19+
}
20+
```
321
## 2.5.0
422

523
- Automatic pagination support added: if the query would return more results

src/Autocomplete/src/Resources/doc/index.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,12 @@ a :ref:`custom autocompleter <custom-autocompleter>`:
484484
.. code-block:: json
485485
486486
{
487-
"results": [
488-
{ "value": "1", "text": "Pizza" },
489-
{ "value": "2", "text":"Banana"}
490-
]
487+
"results": {
488+
"options": [
489+
{ "value": "1", "text": "Pizza" },
490+
{ "value": "2", "text":"Banana"}
491+
]
492+
}
491493
}
492494
493495
Once you have this, generate the URL to your controller and

0 commit comments

Comments
 (0)