click
Description
fires when a button is clickedParameters
- ev - (object) a native HTML click eventobject
Example
<script>
function handleClick(ev){
console.log("A button has been clicked");
}
</script>
<Button onclick={handleClick}>Click me</Button>
Related article: Catching a button click