packages/ag-grid-docs/src/javascript-grid-cell-rendering-components/cell-renderer/main.js
/**
 * Demonstrating function cell renderer
 * Visually indicates if this months value is higher or lower than last months value
 * by adding an +/- symbols according to the difference
 */
Demonstrating function cell renderer
Visually indicates if this months value is higher or lower than last months value
by adding an +/- symbols according to the difference
Demonstrating function cell renderer Visually indicates if this months value is higher or lower than last months value by adding an + / - symbols according to the difference
function deltaIndicator(params) {
    var element = document.createElement("span");
    var imageElement = document.createElement("img");
    if (params.value > 15) {
        imageElement.src = "https://raw.githubusercontent.com/ag-grid/ag-grid/master/packages/ag-grid-docs/src/images/fire-plus.png"
    } else {
        imageElement.src = "https://raw.githubusercontent.com/ag-grid/ag-grid/master/packages/ag-grid-docs/src/images/fire-minus.png"
    }
    element.appendChild(imageElement);
    element.appendChild(document.createTextNode(params.value));
    return element;
}
function deltaIndicator ( params ) { var element = document . createElement ( "span" ) ; var imageElement = document . createElement ( "img" ) ; if ( params . value > 15 ) { imageElement . src = "https://raw.githubusercontent.com/ag-grid/ag-grid/master/packages/ag-grid-docs/src/images/fire-plus.png" } else { imageElement . src = "https://raw.githubusercontent.com/ag-grid/ag-grid/master/packages/ag-grid-docs/src/images/fire-minus.png" } element . appendChild ( imageElement ) ; element . appendChild ( document . createTextNode ( params . value ) ) ; return element ; }
Demonstrating function cell renderer
 Visually indicates if this months value is higher or lower than last months value
 by adding an +/- symbols according to the difference
Demonstrating function cell renderer Visually indicates if this months value is higher or lower than last months value by adding an + / - symbols according to the difference
// visually indicate if this months value is higher or lower than last months value