django-datatable icon indicating copy to clipboard operation
django-datatable copied to clipboard

add stateSave for tables

Open ghost opened this issue 6 years ago • 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 %}

ghost avatar Jul 16 '18 14:07 ghost

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

18926589010 avatar Dec 08 '18 13:12 18926589010