shymonk/django-datatable

add stateSave for tables

alaaib opened this issue · 1 comments

#tables.py

#save state of table between PostBack , Redirect ... (saves filter,search,etc ... )
self.save_state = getattr(options, 'stateSave', False)

#table.html

{% block save_table_state %}
  "stateSave": {{ save_state }},
{% endblock %}

good, , i have to modify the templates table.html as below before i see this comment
{% block table_options %}
"stateSave": true,
{% block table_dom %}