Browse files

Added an option to set "defaultFormatter".

  • Loading branch information...
1 parent 902d189 commit e082d9d8c62e5d7f7ea2c7ef575e2ee756b41c33 @mleibman mleibman committed Feb 15, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 slick.grid.js
View
5 slick.grid.js
@@ -83,7 +83,8 @@ if (typeof Slick === "undefined") {
enableTextSelectionOnCells: false,
dataItemColumnValueExtractor: null,
fullWidthRows: false,
- multiColumnSort: false
+ multiColumnSort: false,
+ defaultFormatter: defaultFormatter
};
var columnDefaults = {
@@ -1156,7 +1157,7 @@ if (typeof Slick === "undefined") {
(rowMetadata && rowMetadata.formatter) ||
column.formatter ||
(options.formatterFactory && options.formatterFactory.getFormatter(column)) ||
- defaultFormatter;
+ options.defaultFormatter;
}
function getEditor(row, cell) {

0 comments on commit e082d9d

Please sign in to comment.