Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
framework-web:spring:td4 [2019/03/13 03:56] – [Création] jcheron | framework-web:spring:td4 [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 37: | Ligne 37: | ||
public static void main(String[]args) throws IOException { | public static void main(String[]args) throws IOException { | ||
VueComponent compo=new VueComponent(" | VueComponent compo=new VueComponent(" | ||
- | compo.setProps(" | + | compo.setProps(" |
compo.addProp(" | compo.addProp(" | ||
+ | compo.addData(" | ||
+ | |||
compo.addMethod(" | compo.addMethod(" | ||
compo.setDefaultTemplateFile(); | compo.setDefaultTemplateFile(); | ||
Ligne 65: | Ligne 67: | ||
< | < | ||
< | < | ||
- | <v-btn color=" | + | <v-btn color=" |
</ | </ | ||
</ | </ | ||
Ligne 71: | Ligne 73: | ||
</ | </ | ||
+ | Test en dur : | ||
<sxh html; | <sxh html; | ||
- | < | + | < |
</ | </ | ||
Ligne 79: | Ligne 82: | ||
+ | Test avec variables : | ||
+ | |||
+ | <sxh html; | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | Dans le contrôleur associé à la vue : | ||
+ | |||
+ | <sxh java> | ||
+ | vue.addMethod(" | ||
+ | vue.addData(" | ||
+ | vue.addData(" | ||
+ | vue.addData(" | ||
+ | vue.addData(" | ||
+ | </ | ||
+ | |||
+ | ===== Composants à créer ===== | ||
+ | |||
+ | ^Composant ^Rôle ^ | ||
+ | |m-confirm-button | Bouton de confirmation avec dialog associé affichant un message de confirmation (pour valider ou annuler) | | ||
+ | |m-data-table | Affiche un tableau d' | ||
+ | |m-form-field | Affiche un champ de formulaire associé à une donnée, d'un certain type | | ||
+ | |m-dialog-form | Affiche une boîte de dialogue contenant un formulaire pour afficher un objet | | ||
+ | |m-crud | Permet de gérer les opérations de base sur une collection d' |