Skip to content

Commit

Permalink
0.0.29
Browse files Browse the repository at this point in the history
  • Loading branch information
bahrus committed Sep 11, 2024
1 parent 20f2a33 commit 3274b48
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,23 @@ In order to define a handler or multiple handlers, limited to your current Shado

```

## Example 1e Traditional local event handler

A framework or custom element host or local script element can attach a local event listener to the output element and compute the value

```html
<form>
<input type=range id=a name=a value=50>
+<input type=number id=b name=b value=25>
=

<output id=output name=result for="a b" 🧮=+></output>
</form>
<script>
output.addEventListener('calculate', e => e.r = e.args.reduce((acc, arg) => acc + arg))
</script>
```


Anyway...

Expand Down

0 comments on commit 3274b48

Please sign in to comment.