Package orm2 :: Package ui :: Package xist :: Module result_table :: Class sort_header
[hide private]
[frames] | no frames]

Class sort_header

source code

_cell --+    
        |    
   header --+
            |
           sort_header

Header for a column that may be sorted. Provides a link, clicking on which will sort the table according to this column. If this column is the currently active column, the sort order will be reversed. Whether the column is active is indicated throught the class= attribute of the html.a() created: ''active'' or empty.

Instance Methods [hide private]
  __call__(self, base_url, request)
  __init__(self, result_table, dbproperty, title=None)

Inherited from header: title


Method Details [hide private]

__call__(self, base_url, request)
(Call operator)

source code 
Returns:
a cell (html.th()) element.
Overrides: header.__call__
(inherited documentation)

__init__(self, result_table, dbproperty, title=None)
(Constructor)

source code 
Overrides: header.__init__
(inherited documentation)