A simple Django templatetag to renders a sortable column to support sorting in tables.
Project description
=====
Sortable Column
=====
Sortable Column is a simple Django templatetag to renders a sortable column to
support sorting in tables.
Detailed documentation on GitHub (https://github.com/weynelucas/django-sortable-column)
Quick start
-----------
1. Add "sortable_column" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'sortable_column',
]
2. Include the following snippet at the top of any template that makes use of
the sortable column tags:
{% load sortable_column %}
3. Use sortable_column tag on your template to render th tags for support the sorting
in tables:
{% sortable_column request=request property="title" title="Title" %}
4. Handle 'sort' and 'order' parameters generated by sortable_column tag in your view function
for sorting your dataset.
Sortable Column
=====
Sortable Column is a simple Django templatetag to renders a sortable column to
support sorting in tables.
Detailed documentation on GitHub (https://github.com/weynelucas/django-sortable-column)
Quick start
-----------
1. Add "sortable_column" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'sortable_column',
]
2. Include the following snippet at the top of any template that makes use of
the sortable column tags:
{% load sortable_column %}
3. Use sortable_column tag on your template to render th tags for support the sorting
in tables:
{% sortable_column request=request property="title" title="Title" %}
4. Handle 'sort' and 'order' parameters generated by sortable_column tag in your view function
for sorting your dataset.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-sortable-column-0.1.1.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d0390948bed94d741b30ed8b6a1d20801d93a48c579b75d1b2a51547d71099b |
|
MD5 | 4a83c233e082efe0545cf9d13b2f9efe |
|
BLAKE2b-256 | c63ff7438ffa60fba61cb2ae7a6004c399eabb14145a8f45ed53be22f8a95229 |