Pegase745 / sqlalchemy-datatables

SQLAlchemy integration of jQuery DataTables >= 1.10.x (Pyramid and Flask examples)
MIT License
159 stars 67 forks source link

Avoid manual table headers? #126

Open saurabh02 opened 4 years ago

saurabh02 commented 4 years ago

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

louking commented 4 years ago

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.