sqlalchemy-datatables
sqlalchemy-datatables copied to clipboard
Avoid manual table headers?
Hi,
Great package! I noticed in your templates you are manually typing the table headers in the <table>
tags. Is there a way to avoid that and manually get them from the database table?
Thanks Saurabh
If I'm understanding your question correctly, I think this is more of a question for datatables, but columns.title option (https://datatables.net/reference/option/columns.title) can be used so all you have to do is create the <table></table>
and datatables will fill in the headers.