mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Facet "selected" key and toggle_url now toggles, refs #255
This commit is contained in:
parent
2b79f2bdeb
commit
cf6e7840ae
5 changed files with 54 additions and 8 deletions
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue