equal
deleted
inserted
replaced
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): |