Skip to content

Commit

Permalink
Add 'groupFormatter' and 'totalsFormatter' options to Slick.GroupItem…
Browse files Browse the repository at this point in the history
…MetadataProvider.
  • Loading branch information
mleibman committed Jul 31, 2013
1 parent d66cc78 commit b96dea6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions slick.groupitemmetadataprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
toggleCssClass: "slick-group-toggle",
toggleExpandedCssClass: "expanded",
toggleCollapsedCssClass: "collapsed",
enableExpandCollapse: true
enableExpandCollapse: true,
groupFormatter: defaultGroupCellFormatter,
totalsFormatter: defaultTotalsCellFormatter
};

options = $.extend(true, {}, _defaults, options);
Expand Down Expand Up @@ -116,7 +118,7 @@
columns: {
0: {
colspan: "*",
formatter: defaultGroupCellFormatter,
formatter: options.groupFormatter,
editor: null
}
}
Expand All @@ -128,7 +130,7 @@
selectable: false,
focusable: options.totalsFocusable,
cssClasses: options.totalsCssClass,
formatter: defaultTotalsCellFormatter,
formatter: options.totalsFormatter,
editor: null
};
}
Expand Down

0 comments on commit b96dea6

Please sign in to comment.