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:46] – cyrille | informatique:javascript:alpinejs [31/12/2025 10:52] (Version actuelle) – [Select multiple] cyrille | ||
|---|---|---|---|
| Ligne 40: | 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.1760777161.txt.gz · Dernière modification : de cyrille
