Facet "selected" key and toggle_url now toggles, refs #255

This commit is contained in:
Simon Willison 2018-05-14 17:42:10 -03:00
commit cf6e7840ae
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
5 changed files with 54 additions and 8 deletions

View file

@ -23,11 +23,13 @@ This works for both the HTML interface and the ``.json`` view. When enabled, fac
{
"value": "CA",
"count": 10,
"selected": false,
"toggle_url": "http://...&state=CA"
},
{
"value": "MI",
"count": 4,
"selected": false,
"toggle_url": "http://...&state=MI"
}
],
@ -35,16 +37,19 @@ This works for both the HTML interface and the ``.json`` view. When enabled, fac
{
"value": "San Francisco",
"count": 6,
"selected": false,
"toggle_url": "http://...=San+Francisco"
},
{
"value": "Detroit",
"count": 4,
"selected": false,
"toggle_url": "http://...&city=Detroit"
},
{
"value": "Los Angeles",
"count": 4,
"selected": false,
"toggle_url": "http://...=Los+Angeles"
}
]