Open simonw opened 4 years ago
Related: I built datasette-leaflet-freedraw which turns any canned query field called freedraw
or something_freedraw
into an interactive map that you can draw on to create a GeoJSON MultiPolygon.
Idea for these: imitate https://django-sql-dashboard.readthedocs.io/en/latest/widgets.html#custom-widgets and drive them with templates.
So a custom widget type of textarea
would look for a template called widgets/textarea.html
- which means users could define brand new custom widgets just by creating their own template files.
Related feature request: ability to set default values for canned queries: #1258
This is an idea that was cut from the first version of writable canned queries:
Originally posted by @simonw in https://github.com/simonw/datasette/issues/698#issuecomment-608125928