FixedFilterAction.categorize: Make variable name generic and explain more in docs

This appears to have been partly made generic from openstack_dashboard's
project images table - but not completely.

Change-Id: Ib78092d56108269a0ae39df95e232312a2352e32
This commit is contained in:
Alex Monk 2016-08-27 11:39:31 +01:00
parent 416a398dc1
commit 8e70469adc
1 changed files with 7 additions and 3 deletions

View File

@ -579,11 +579,15 @@ class FixedFilterAction(FilterAction):
"""
return []
def categorize(self, table, images):
"""Override to separate images into categories.
def categorize(self, table, rows):
"""Override to separate rows into categories.
To have filtering working properly on the client, each row will need
CSS class(es) beginning with 'category-', followed by the value of the
fixed button.
Return a dict with a key for the value of each fixed button,
and a value that is a list of images in that category.
and a value that is a list of rows in that category.
"""
return {}