From 756d4ca97113c9e3e94a4f3bf55e986a03296d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Maurice?= Date: Wed, 18 Sep 2024 17:29:02 +0200 Subject: [PATCH] Docs(custom-elements): Translate 1/3 #1356 #1356 #1311 --- src/api/custom-elements.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/custom-elements.md b/src/api/custom-elements.md index aa2c9d32..ef43eaae 100644 --- a/src/api/custom-elements.md +++ b/src/api/custom-elements.md @@ -1,8 +1,8 @@ -# Custom Elements API {#custom-elements-api} +# API des éléments personnalisés {#custom-elements-api} ## defineCustomElement() {#definecustomelement} -This method accepts the same argument as [`defineComponent`](#definecomponent), but instead returns a native [Custom Element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) class constructor. +Cette méthode accepte le même argument que [`defineComponent`](#definecomponent), mais renvoie à la place un constructeur natif de classe [Élément personnalisé](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements). - **Type** @@ -19,14 +19,14 @@ This method accepts the same argument as [`defineComponent`](#definecomponent), interface CustomElementsOptions { styles?: string[] - // the following options are 3.5+ + // les options suivantes sont possibles 3.5+ configureApp?: (app: App) => void shadowRoot?: boolean nonce?: string } ``` - > Type is simplified for readability. + > Les caractères sont simplifiés pour une meilleure lisibilité. - **Details**