web/htmlwidgets.py
changeset 4183 b5aa030bb2f9
parent 4023 eae23c40627a
child 4211 eac4b23a42ff
equal deleted inserted replaced
4182:b7cf0ebdd8b6 4183:b5aa030bb2f9
   286     """
   286     """
   287     Display data in a Table with sortable column.
   287     Display data in a Table with sortable column.
   288 
   288 
   289     When using remember to include the required css and js with:
   289     When using remember to include the required css and js with:
   290 
   290 
   291     self.req.add_js('jquery.tablesorter.js')
   291     self._cw.add_js('jquery.tablesorter.js')
   292     self.req.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css'))
   292     self._cw.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css'))
   293     """
   293     """
   294     highlight = "onmouseover=\"addElementClass(this, 'highlighted');\" " \
   294     highlight = "onmouseover=\"addElementClass(this, 'highlighted');\" " \
   295                 "onmouseout=\"removeElementClass(this, 'highlighted');\""
   295                 "onmouseout=\"removeElementClass(this, 'highlighted');\""
   296 
   296 
   297     def __init__(self, model):
   297     def __init__(self, model):