Skip to content

Commit

Permalink
when the value is false, display false instead of empty cell
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremi committed Jun 27, 2014
1 parent 9b5d430 commit d594766
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rd_ui/app/scripts/visualizations/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@
} else if (columnType === 'float') {
columnDefinition.formatFunction = 'number';
columnDefinition.formatParameter = 2;
} else if (columnType === 'boolean') {
columnDefinition.formatFunction = function (value) {
if (value !== undefined) {
return "" + value;
}
return value;
};
} else if (columnType === 'date') {
columnDefinition.formatFunction = function (value) {
if (value) {
Expand Down

0 comments on commit d594766

Please sign in to comment.