sqlalchemy-datatables icon indicating copy to clipboard operation
sqlalchemy-datatables copied to clipboard

Avoid manual table headers?

Open saurabh02 opened this issue 4 years ago • 1 comments

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

saurabh02 avatar Mar 14 '20 01:03 saurabh02

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.

louking avatar Jul 23 '20 19:07 louking