web/htmlwidgets.py
branchstable
changeset 3798 d2c27621cc81
parent 3797 af9b0e113108
child 4023 eae23c40627a
child 4212 ab6573088b4a
--- a/web/htmlwidgets.py	Thu Nov 05 12:42:15 2009 +0100
+++ b/web/htmlwidgets.py	Thu Nov 05 12:44:24 2009 +0100
@@ -283,7 +283,14 @@
 
 
 class TableWidget(HTMLWidget):
+    """
+    Display data in a Table with sortable column.
 
+    When using remember to include the required css and js with:
+
+    self.req.add_js('jquery.tablesorter.js')
+    self.req.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css'))
+    """
     highlight = "onmouseover=\"addElementClass(this, 'highlighted');\" " \
                 "onmouseout=\"removeElementClass(this, 'highlighted');\""