Skip to content
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

Avoid manual table headers? #126

Open
saurabh02 opened this issue Mar 14, 2020 · 1 comment
Open

Avoid manual table headers? #126

saurabh02 opened this issue Mar 14, 2020 · 1 comment

Comments

@saurabh02
Copy link

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
Copy link
Collaborator

louking commented Jul 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants