on peut aussi passer dans l'env url de api json

This commit is contained in:
Christophe 2020-03-12 23:18:15 +01:00
parent 7779fb6f6c
commit 0ebada6a1a
2 changed files with 6 additions and 4 deletions

View file

@ -4,11 +4,13 @@
Choisir entre la version minifiée de vuejs (sans le debug) ou la version de dev
## Utilisation
1. Charger l'inclure
1. Charger l'inclure (2 args possibles)
```html
<INCLURE{fond=inclure/gamutable,env}>
// Ou
<INCLURE{fond=inclure/gamutable,env,tparpage="[15,25,50,'Tous']"}>
Ou
<INCLURE{fond=inclure/gamutable,env,tparpage=[15,25,50,'Tous']}>
Et / Ou
<INCLURE{fond=inclure/gamutable,env,apiuri=spip.php?page=json_gamutable.json}>
```
2. Surcharcher `json_gamutable.json.html` en suivant son modele
> * pour le header c'est de la forme : "champ":"label"

View file

@ -2,7 +2,7 @@
<div id="app" class="crayon xxxx-yyyy-nn">
<mon-tableau
apiuri="spip.php?page=json_gamutable.json"
apiuri="#ENV{apiuri,spip.php?page=json_gamutable.json}"
:tparpage="#ENV{tparpage, [10, 20, 50, 'Tous']}"
ref="montableau"
></mon-tableau>