diff --git a/README.md b/README.md index b11de44..e0e2871 100644 --- a/README.md +++ b/README.md @@ -7,18 +7,25 @@ Choisir entre la version minifiée de vuejs (sans le debug) ou la version de dev 1. Charger l'inclure (2 args possibles) ```html - Ou - - Et / Ou - + + Ou avec toutes les options facultatives + + ``` -2. Surcharcher `json_gamutable.json.html` en suivant son modele +3. Surcharcher `json_gamutable.json.html` en suivant son modele > * pour le header c'est de la forme : "champ":"label" > > * **IMPORTANT** pour le content du json, il que le cle de la KEY de la table soit "id" et non pas "id_souscription" > > * pour les champs date, pour avoir l'ordre de la col, il faut le format : dd/mm/yyyy ou dd/mm/yy -3. Pour utliser **les actions** : +4. Pour utliser **les actions** : ```html [(#SET{statut, #SET{args,#ID_SOUSCRIPTION|concat{-}|concat{#STATUT}} diff --git a/js/gamutable.es6.js b/js/gamutable.es6.js index ae31d20..a53036f 100644 --- a/js/gamutable.es6.js +++ b/js/gamutable.es6.js @@ -105,10 +105,6 @@ function exporterCSV(json, delimitercsv, name) { } else { csv = Papa.unparse(json); } - //json.forEach((l) => { - //csv += l.join(delimitercsv); - //csv += '\r\n'; - //}); //Download the file as CSV let link = document.createElement('a'); link.setAttribute('href', 'data:text/csv;charset=utf-8,%EF%BB%BF' + encodeURIComponent(csv)); @@ -131,9 +127,6 @@ let monTableau = { type: String, required: true, }, - objet: { - type: String, - }, champcsv: { type: String, }, diff --git a/js/gamutable.js b/js/gamutable.js index 91f523d..be09b94 100644 --- a/js/gamutable.js +++ b/js/gamutable.js @@ -138,11 +138,7 @@ function exporterCSV(json, delimitercsv, name) { }); } else { csv = Papa.unparse(json); - } //json.forEach((l) => { - //csv += l.join(delimitercsv); - //csv += '\r\n'; - //}); - //Download the file as CSV + } //Download the file as CSV var link = document.createElement('a'); @@ -166,9 +162,6 @@ var monTableau = { type: String, required: true }, - objet: { - type: String - }, champcsv: { type: String },