📄️ AsyncAppend
La directive asyncAppend est utilisée pour gérer les promesses dans les templates Lithium. Elle permet de rendre le résultat d'une promesse de manière asynchrone dans le DOM, ce qui est particulièrement utile pour afficher des données provenant de requêtes réseau ou d'autres opérations asynchrones.
📄️ Children
La directive children dans Lithium est utilisée pour rendre des éléments enfants à partir d'une liste ou d'un tableau d'éléments. Elle simplifie la gestion des éléments enfants en permettant de spécifier des propriétés et des filtres pour manipuler et afficher des éléments dans le DOM.
📄️ Ref
La directive ref dans Lithium est utilisée pour créer des références vers des éléments du DOM ou des composants, permettant ainsi de les manipuler directement dans le code. Cette fonctionnalité est particulièrement utile pour interagir avec des éléments du DOM qui ne sont pas directement accessibles via les propriétés du contexte.
📄️ Repeat
La directive repeat de Lithium est utilisée pour générer des éléments répétitifs dans un template en fonction d'une collection de données. Elle facilite la création dynamique de listes d'éléments basées sur des données fournies, en rendant chaque élément de manière efficace et réactive.
📄️ Until
La directive until de Lithium est utilisée pour afficher un contenu conditionnellement en fonction de l'état de promesses. Elle est particulièrement utile pour gérer les situations où vous devez afficher des données ou des éléments une fois qu'une promesse est résolue, tout en montrant un contenu de remplacement pendant le chargement.
📄️ When
La directive when de Lithium est utilisée pour gérer l'affichage conditionnel de contenu en fonction de l'évaluation d'une expression booléenne. Elle est particulièrement utile pour afficher différents contenus en fonction de l'état des données ou des conditions.