Skip to content

Commit

Permalink
Docs(custom-elements): Translate 1/3 #1356
Browse files Browse the repository at this point in the history
  • Loading branch information
tisma95 committed Sep 18, 2024
1 parent ac1aa64 commit 756d4ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/custom-elements.md
Original file line number Diff line number Diff line change
@@ -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**

Expand All @@ -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**

Expand Down

0 comments on commit 756d4ca

Please sign in to comment.