Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*This is inline in the page*/
  2.     var opts = {
  3.             dataModel: hrs.data.get("Pluto_36_n163_16_n163_", "timeEntryData")
  4.           };
  5.           hrs.pager.init("#Pluto_36_n163_16_n163_hrs-time-entry", opts);
  6.  
  7.  
  8. /*This is from an external JS file of utility functions */
  9.     hrs.pager.init = function(selector, options) {
  10.         var defaults = {
  11.             bodyRenderer : {
  12.                 type : "fluid.pager.selfRender",
  13.                 options : {
  14.                     selectors : {
  15.                         root : ".hrs-pager-table-data"
  16.                     }
  17.                 }
  18.             },
  19.             pagerBar : {
  20.                 type : "fluid.pager.pagerBar",
  21.                 options : {
  22.                     pageList : {
  23.                         type : "fluid.pager.renderedPageList",
  24.                         options : {
  25.                             pageStrategy : hrs.pager.consistentGappedPageStrategy(2, 2)
  26.                         }
  27.                     }
  28.                 }
  29.             },
  30.             model : {
  31.                 pageSize : 10
  32.             },
  33.             strings : {
  34.                 last : ""
  35.             }
  36.         };
  37.        
  38.         var opts = hrs.jQuery.extend({}, defaults, options);
  39.        
  40.         fluid.pager(selector, opts);
  41.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement