Clicky button
This commit is contained in:
parent
fa2ee1915d
commit
935ec51dcb
|
@ -24,5 +24,6 @@
|
|||
<p>
|
||||
Source code: <a href="src/index.js">index.js</a>
|
||||
</p>
|
||||
<div id="extra"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -59,3 +59,12 @@ spawn named 'controller' {
|
|||
^ SetSortColumn(JSON.parse(e.target.dataset.column));
|
||||
}
|
||||
}
|
||||
|
||||
spawn named 'alerter' {
|
||||
let ui = new UI.Anchor();
|
||||
assert ui.html('#extra', <button>Click me</button>);
|
||||
|
||||
on message UI.UIEvent(ui.fragmentId, '.', 'click', $e) {
|
||||
alert("Hello!");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue