Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Feb 16, 2018
2 parents 24b77de + 5d83bfb commit ef0fb16
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions js/BBjGridExWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,12 @@ function bbj_grid_widget_init(container, license, data, options) {
options.columnDefs[i].valueFormatter = bbj_grid_widget_format_value(
options.columnDefs[i].filter
);
options.columnDefs[i].cellRenderer = bbj_grid_widget_render_value(
options.columnDefs[i].filter
);

if(!options.columnDefs[i].cellRenderer) {
options.columnDefs[i].cellRenderer = bbj_grid_widget_render_value(
options.columnDefs[i].filter
);
}
}

return new agGrid.Grid(container, options);
Expand Down Expand Up @@ -281,12 +284,15 @@ function bbj_grid_widget_get_value_formatter_number(data) {

function bbj_grid_widget_get_value_renderer_boolean(data) {

if (data.value) {
if (true === data.value) {
return '<span>&#x2714;</span>'
} else {
}

if (false === data.value) {
return '<span>&#x2718;</span>'
}

return date.value;
}

function bbj_grid_widget_set_data(json, options) {
Expand Down

0 comments on commit ef0fb16

Please sign in to comment.