informatique:javascript:alpinejs
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:javascript:alpinejs [18/10/2025 10:38] – cyrille | informatique:javascript:alpinejs [31/12/2025 10:52] (Version actuelle) – [Select multiple] cyrille | ||
|---|---|---|---|
| Ligne 20: | Ligne 20: | ||
| * le tag '' | * le tag '' | ||
| + | ===== Comparaison avec Juris JS ===== | ||
| - | Alternative | + | * https:// |
| + | * https:// | ||
| Alpine.js Limitations: | Alpine.js Limitations: | ||
| Ligne 38: | Ligne 40: | ||
| * Service injection - Clean dependency injection pattern | * Service injection - Clean dependency injection pattern | ||
| * Selector targeting - Precise DOM targeting without attribute pollution | * Selector targeting - Precise DOM targeting without attribute pollution | ||
| + | |||
| + | ===== Tips ===== | ||
| + | |||
| + | ==== Select multiple ==== | ||
| + | |||
| + | Version simple ; utilise directement l' | ||
| + | <code html> | ||
| + | <div class=" | ||
| + | < | ||
| + | < | ||
| + | @change=" | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Version avec bouton pour supprimer la sélection et désactiver ce bouton quand aucune sélection ; utilise un '' | ||
| + | <code html> | ||
| + | <div class=" | ||
| + | < | ||
| + | < | ||
| + | | ||
| + | | ||
| + | > | ||
| + | < | ||
| + | | ||
| + | > | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
informatique/javascript/alpinejs.1760776729.txt.gz · Dernière modification : de cyrille
