'm using ng-csv to export xls files.
i have to following object to be exported into xls file.
myObj = {position:"2", status:"X"};
the status fild can have a different values: "X" or "Y" ....
So if the status field is equal to "X", the xls column containing the X value has a red background color, and if the status field is equal to "Y", the xls column containing the Y value has a green background color.
How can i do this using the angulars ng-csv ?
my ns-csv is declared us following:
<button ng-csv="getCSVExport(currentgrid)" csv-header="headersCsv" filename="matrice_chantier.csv" field-separator=";" decimal-separator="." class="btn btn-default exportCSV" style="margin:0; display:inline-block;"
add-bom="true"><img class="imgCSV" style="margin:0; max-width:15px;"
src="/img/csv.jpg" alt="Export to CSV">
</button>