Blame view

WebRoot/static/js/tablescroller.jquery.js 971 Bytes
d3d7b2ca   孙向锦   修改表格固定
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  //********************************************************************************************************************************************
  //*
  //*  tablescroller
  //*  creates a horizontal and vertical scrolling table with pinned row and column headers.
  //*
  //*  options:
  //*     width - the width of the table
  //*     height - the height of the table
  //*     pinnedRows - the number of pinned rows
  //*     pinnedCols - the number of pinned columns
  //*     container - the container id for the scrollable table
  //*     removeOriginal - indicator for removing the orignal table
  //*
  //********************************************************************************************************************************************
  $.fn.tablescroller = function (options) {
  
      $(this).each(function (index, element) {
  
          var tableScroller = new TableScroller(element, options);
          $(element).data("tablesScrollerRef", tableScroller);
      });
  
      return this;
  };