You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Guide: dom-events.md
Première traduction
* Update README.md
* Update dom-events.md
* Update README.md
* Prise en compte des remarques de @yati & @haeresis
Copy file name to clipboardExpand all lines: docs/en/guides/dom-events.md
+27-26
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,17 @@
1
-
# Testing Key, Mouse and other DOM events
1
+
# Tester le clavier, la souris et les autres évènements DOM
2
2
3
-
## Trigger events
3
+
## Déclencheur d'évènements
4
4
5
-
The `Wrapper` expose a `trigger` method. It can be used to trigger DOM events.
5
+
6
+
Le `Wrapper` expose une méthode `trigger`. Elle peut être utilisée pour déclencher des évènements du DOM.
6
7
7
8
```js
8
9
constwrapper=mount(MyButton)
9
10
10
11
wrapper.trigger('click')
11
12
```
12
13
13
-
You should be aware, that find returns a wrapper as well. Assuming `MyComponent`contains a button, the following code clicks the button.
14
+
Vous devez être au courant que la méthode `find` retourne aussi un wrapper. En partant du principe que `MyComponent`contient un bouton, le code suivant clique sur le bouton.
0 commit comments