-
-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
row_actions() plugin hook #2299
Comments
There's a slight complication here. Displaying it on the row page is easy - it can look exactly like table/query/etc actions: But the other natural place to display row actions would be on the table page itself - similar to how we have column actions there (which are actually a JavaScript plugin thing, not a Python plugin thing): Cog icons next to the primary key cells could make sense. In fact, the https://github.com/datasette/datasette-write-ui plugin already adds something like that: There's one big catch: a table page could show 100 rows at a time. Executing the Instead, I'm inclined to say that this plugin affects the row page but NOT the table page... but we add a separate JavaScript hook mechanism (similar to makeColumnActions()) at a later date to handle the inline action items on the row page. We could even have a cog icon that does a dynamic At any rate, I'm OK bumping the mechanics of the row-level cog icon on the table page to a later date. I think it's still worth having a |
Documentation: https://docs.datasette.io/en/latest/plugin_hooks.html#row-actions-datasette-actor-request-database-table-row Live demo (signed in as root): https://latest.datasette.io/fixtures/facetable/1 |
We now have:
from view_actions() hook, to avoid showing table actions on view pages that don't work #2297
from
query_actions
plugin hook, refs #2283 #2288from Homepage actions button on / index page #2298
The only one missing is row actions, to be shown on the row table.
The text was updated successfully, but these errors were encountered: