ソースを参照

docs: add link to MDN "Event" on `x-on`

Hugo 4 年 前
コミット
f351789769
1 ファイル変更1 行追加1 行削除
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -312,7 +312,7 @@ The `camel` modifier will bind to the camel case equivalent of the attribute nam
 
 
 **Structure:** `<button x-on:[event]="[expression]"></button>`
 **Structure:** `<button x-on:[event]="[expression]"></button>`
 
 
-`x-on` attaches an event listener to the element it's declared on. When that event is emitted, the JavaScript expression set as its value is executed.
+`x-on` attaches an event listener to the element it's declared on. When that event is emitted, the JavaScript expression set as its value is executed. You can use `x-on` with any event available for the element you're adding the directive on, for a full list of events, see [the Event reference on MDN](https://developer.mozilla.org/en-US/docs/Web/Events) for a list of possible values.
 
 
 If any data is modified in the expression, other element attributes "bound" to this data, will be updated.
 If any data is modified in the expression, other element attributes "bound" to this data, will be updated.