Skip to content

Commit e146983

Browse files
committed
Add a remark about the DOM event
1 parent 506a479 commit e146983

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/javascript/components_toggle_button.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,10 @@ If the button is part of a form, the name is used to transmit the value when the
2727
The value that should be transmitted when the form is sent if the button is active.
2828

2929
Defaults to `1`.
30+
31+
## Events
32+
33+
### `change`
34+
35+
The custom event `change` is fired on the toggle button whenever the `checked` property of the button changes.
36+
The event detail contains `{ checked: boolean }`, alternatively the property `checked` can be queried to fetch the current state.

0 commit comments

Comments
 (0)