Permalink
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (26 sloc) 1.11 KB

{% raw %}

Generates a link that will add (or replace) &property=value to the current request or will remove it if it's already there. Optionally instead of showing the actual value it is possible to show an icon. The icon is more appropriate when filtering by boolean properties.

Arguments
property
The name of the entity's property.
value
The value to be applied to the filter.
icon
Optional name for the icon instead that will be shown instead of the value.
ignore
Optional list of arguments that will be ignored and removed from the generated request. Sometimes it is needed when in the original request the cursor is present and it will be invalid if some of the other arguments will have a different value.

Examples & Demo

Check how it is used in user_list.html and play with filters in User List.

{% endraw %}