generalFormatter = (cell, formatterParams, onRendered) => {
var field = cell.getField();
var value = cell.getValue();
if (field === "Year") {
return yearFormatter(cell, formatterParams, onRendered);
} else if (field === "RecreationVisits") {
return recreationVisitsFormatter(cell, formatterParams, onRendered);
} else if (field === "State") {
return italicFormatter(cell, formatterParams, onRendered);
} else {
return value;
}
}