-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.html
38 lines (30 loc) · 947 Bytes
/
input.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Components</title>
</head>
<body>
<app-input lable="UserName"></app-input>
<input>
<!-- <app-form onclick="tets()"></app-form> example of the button click -->
<script>
const test = () => {
console.log("form clicked")
}
document.addEventListener('input' ,(event) => {
console.log(event.target);
});
document.addEventListener('app-input' ,(event) => {
console.dir(event.detail);
});
document.addEventListener('app-button-clicked' ,() => {
console.log("clieck button")
})
</script>
<script src="./src/input.js" type="module"></script>
<script src="./src/button.js" type="module"></script>
<script src="./src/basic-form.js" type="module"></script>
</body>
</html>