-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Ability to customize individual cell rendering within tables - like widgets but at the table cell level #154
Comments
But... you example here should have worked too! https://django-sql-dashboard.datasette.io/en/stable/widgets.html#html |
Oh I see what happened here: the So your example would work if you did something like this instead: select '<a href="/dashboards/details?id=' || id ||
'">click here</a><p>' || created_at || '</p><p>' || logs
as html
from myapp table |
So really the feature you are suggesting here is to make it so you can return a table but have custom treatment of the individual table cells - as opposed to the current mechanism where widgets replace the table entirely with an alternative display: https://django-sql-dashboard.datasette.io/en/stable/widgets.html |
I've done a lot of work with this kind of thing in Datasette - there's a Maybe a similar mechanism would be useful for Django SQL Dashboard as well. |
Hey @simonw, thanks for your replies and explanations. An ability to control widgets for individual cells sounds pretty amazing. Love the mp3 player example! |
Not sure if this pushes things a bit too far, but I thought it would be nice to be able to have a table on one dashboard, where each row displays a link that would take the user to a different dashboard that displays details about that row (e.g. by passing the id as a parameter for the other dashboard). This could be done e.g. by allowing to render individual cells as markdown or html. Essentially s.th. like this
Not sure how difficult that would be though.
The text was updated successfully, but these errors were encountered: