carltongibson / neapolitan

Quick CRUD views for Django
https://noumenal.es/neapolitan/
MIT License
456 stars 33 forks source link

Is there a way to add a column with custom HTML to a table? #53

Closed GregShiner closed 1 month ago

GregShiner commented 1 month ago

I've been digging for a while and I can't find anything that would do this. I would love to extend the functionality a bit by adding a few things like additional buttons on each row. Or by making certain elements clickable to have different actions. If this doesn't exist already, I think this would make a pretty great feature. There's already great ways of overriding the different role actions, but I am still limited to only those roles. Maybe a way to add additional roles? It would be a big ask, but maybe reworking neapolitan.views.Role from an enum.Enum to an interface or abstract class would allow users to create additional roles. Maybe the row could be a partial template that can be overridden with the manage.py mktemplate command. I think that would be my preferred solution.

carltongibson commented 1 month ago

Duplicate of #54, which has more info.

GregShiner commented 1 month ago

Oh this is totally my bad. I wrote this issue on some pretty crappy internet and it sent the issue twice. Sorry about that!