         $('.columnsButton', self._element).css 'top', self._tableElement.position().top
       , 1)
 
-  @method 'generateTableHTML', (html, media='screen') ->
+  @method 'generateTableHTML', (html, rows=null, media='screen') ->
     html.push '<thead>'
     @generateHeaderInnerHTML html, media
     html.push '</thead><tbody>'
-    @generateBodyInnerHTML html, media
+    @generateBodyInnerHTML html, rows, media
     html.push '</tbody>'
   
   @method 'generateHeaderInnerHTML', (html, media='screen') ->

      ST.once "sort#{@_uid}", @method('sort')
  
  @method 'generatePrintHTML', (html, options={}) ->
    oldMapping = @_mapping
    oldSortColumn = @_sortColumn
    if options.sortColumn
      @_sortColumn = options.sortColumn
      @_mapping = oldMapping.slice(0)
      if sortFunction = @sortFunction()
        @_mapping.sort sortFunction
    
    html.push '<table class="tableView">'
    @generateTableHTML html, 'print'
    html.push '</table>'
    
    @_mapping = oldMapping
    @_sortColumn = @_sortColumn

  @method 'print', (options={}) ->
    html = []

    
    html.push '</th>'
  
  @method 'generateBodyInnerHTML', (html, rows=null, media='screen') ->
    self = this
    rows ||= @_ordered
    for item in rows
      self.generateRowHTML item, html, media
  
  @method 'activateBody', ->
