add color to xls column using angularjs ng-csv

503 views
Skip to first unread message

Yahia Ammar

unread,
Apr 24, 2015, 6:01:05 AM4/24/15
to ang...@googlegroups.com

'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>

Sander Elias

unread,
Apr 24, 2015, 9:25:33 AM4/24/15
to ang...@googlegroups.com
Hi Yahia,

ng-csv is not part of angular, perhaps you can ask for this information in the github repo from the builder?

Regards
Sander
Reply all
Reply to author
Forward
0 new messages