Skip to content

Commit

Permalink
Merge pull request #233 from jeremi/fix-boolean-support-table
Browse files Browse the repository at this point in the history
when the value is false, display false instead of empty cell
  • Loading branch information
arikfr committed Jun 27, 2014
2 parents 9b5d430 + d594766 commit 19b4ec7
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 19b4ec7

Please sign in to comment.