Skip to content

lovasb/django-ajaxtables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-ajaxtables

Create simple ajax tables

Adding sorable/hidable columns

  • To make column sortable add at-sort class to the <th> element
  • To make column hidable add at-hide class to the <th> element
  • Set the id property of the <th> element.
    • The value of id will be passed as an argument to the order_by() function of the table's queryset on sorting
    • The id will be a key in the var hidden which is given to the template, so you can check whether the column is hidden or not
  • Add at-show-hidden to one <th> where you want the "Show hidden columns" button to be placed

About

Create simple ajax tables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published